Skip to content

Commit 86de424

Browse files
committed
Generate sh-compatible binstubs on Unix.
Previously, binstubs used [[ ]], which is a bash-specific construct. [email protected] BUG=21854 Review URL: https://codereview.chromium.org//800733003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42308 260f80e4-7a28-3924-810f-c04153c831b5
1 parent c8f32cf commit 86de424

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/lib/_internal/pub/lib/src/global_packages.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ $invocation "\$@"
694694
# The VM exits with code 255 if the snapshot version is out-of-date.
695695
# If it is, we need to delete it and run "pub global" manually.
696696
exit_code=\$?
697-
if [[ \$exit_code != 255 ]]; then
697+
if [ \$exit_code != 255 ]; then
698698
exit \$exit_code
699699
fi
700700

sdk/lib/_internal/pub_generated/lib/src/global_packages.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ $invocation "\$@"
975975
# The VM exits with code 255 if the snapshot version is out-of-date.
976976
# If it is, we need to delete it and run "pub global" manually.
977977
exit_code=\$?
978-
if [[ \$exit_code != 255 ]]; then
978+
if [ \$exit_code != 255 ]; then
979979
exit \$exit_code
980980
fi
981981

0 commit comments

Comments
 (0)