From 043917c5f0f288e1f40b260f8fa827ba755ab23e Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 5 Nov 2015 11:14:39 -0800 Subject: [PATCH] Fix crash in flutter script --- bin/flutter | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/flutter b/bin/flutter index 6a4667fd60..5ea94104d6 100755 --- a/bin/flutter +++ b/bin/flutter @@ -19,11 +19,11 @@ fi REVISION=`(cd "$FLUTTER_ROOT"; git rev-parse HEAD)` if [ ! -f "$SNAPSHOT_PATH" ] || [ ! -f "$STAMP_PATH" ] || [ `cat "$STAMP_PATH"` != $REVISION ]; then - DART --snapshot="$SNAPSHOT_PATH" --package-root="$FLUTTER_TOOLS_DIR/packages" "$SCRIPT_PATH" + $DART --snapshot="$SNAPSHOT_PATH" --package-root="$FLUTTER_TOOLS_DIR/packages" "$SCRIPT_PATH" echo -n $REVISION > "$STAMP_PATH" fi -DART "$SNAPSHOT_PATH" "$@" +$DART "$SNAPSHOT_PATH" "$@" # The VM exits with code 253 if the snapshot version is out-of-date. # If it is, we need to snapshot it again. @@ -32,5 +32,5 @@ if [ $EXIT_CODE != 253 ]; then exit $EXIT_CODE fi -DART --snapshot="$SNAPSHOT_PATH" --package-root="$FLUTTER_TOOLS_DIR/packages" "$SCRIPT_PATH" -DART "$SNAPSHOT_PATH" "$@" +$DART --snapshot="$SNAPSHOT_PATH" --package-root="$FLUTTER_TOOLS_DIR/packages" "$SCRIPT_PATH" +$DART "$SNAPSHOT_PATH" "$@"