From 8cf2c1703eddd860d34d210ec52821ebd7b4b7bb Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Thu, 30 Jun 2016 21:39:40 -0700 Subject: [PATCH] remove the flutter_dev env var (#4806) --- bin/flutter | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/bin/flutter b/bin/flutter index 67e6e13b0b6..fb5e87d2b9e 100755 --- a/bin/flutter +++ b/bin/flutter @@ -47,20 +47,16 @@ DART="$DART_SDK_PATH/bin/dart" fi ) 3< $PROG_NAME -if [ $FLUTTER_DEV ]; then - "$DART" --packages="$FLUTTER_TOOLS_DIR/.packages" -c "$SCRIPT_PATH" "$@" -else - set +e - "$DART" "$SNAPSHOT_PATH" "$@" +set +e +"$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. - EXIT_CODE=$? - if [ $EXIT_CODE != 253 ]; then - exit $EXIT_CODE - fi - - set -e - "$DART" --snapshot="$SNAPSHOT_PATH" --package="$FLUTTER_TOOLS_DIR/.packages" "$SCRIPT_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. +EXIT_CODE=$? +if [ $EXIT_CODE != 253 ]; then + exit $EXIT_CODE fi + +set -e +"$DART" --snapshot="$SNAPSHOT_PATH" --package="$FLUTTER_TOOLS_DIR/.packages" "$SCRIPT_PATH" +"$DART" "$SNAPSHOT_PATH" "$@"