We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8312c5 commit 9024b26Copy full SHA for 9024b26
run_code_coverage_post.sh
@@ -1,12 +1,15 @@
1
#!/bin/bash
2
-x=`/usr/bin/osascript <<EOT
+button=`/usr/bin/osascript <<EOT
3
tell application "Finder"
4
activate
5
- set myReply to button returned of (display dialog "Generate code coverage report?")
+ set dialogText to "Generate code coverage report?"
6
+ set cancelText to "Cancel"
7
+ set okText to "OK"
8
+ set myReply to button returned of (display dialog dialogText buttons {cancelText, okText} cancel button cancelText default button okText)
9
end tell
10
EOT`
-if [[ $x = "OK" ]]; then
- echo 'Generating code coverage report'
11
+if [[ $button = "OK" ]]; then
12
+ echo "Generating code coverage report"
13
${SRCROOT}/XcodeCoverage/getcov
14
fi
-echo 'Done.'
15
+echo "Done."
0 commit comments