Skip to content

Commit 9024b26

Browse files
committed
Fix Chinese locale dialog by forcing button text to be English
jonreid#20
1 parent d8312c5 commit 9024b26

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

run_code_coverage_post.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
#!/bin/bash
2-
x=`/usr/bin/osascript <<EOT
2+
button=`/usr/bin/osascript <<EOT
33
tell application "Finder"
44
activate
5-
set myReply to button returned of (display dialog "Generate code coverage report?")
5+
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)
69
end tell
710
EOT`
8-
if [[ $x = "OK" ]]; then
9-
echo 'Generating code coverage report'
11+
if [[ $button = "OK" ]]; then
12+
echo "Generating code coverage report"
1013
${SRCROOT}/XcodeCoverage/getcov
1114
fi
12-
echo 'Done.'
15+
echo "Done."

0 commit comments

Comments
 (0)