From 6190c8fcacca3a63407f8d843c16b46cc26cacb1 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Mon, 21 Mar 2016 09:13:26 -0700 Subject: [PATCH] add support for a FLUTTER_DEV env var in the flutter script --- bin/flutter | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/flutter b/bin/flutter index 0cf19b4c49..08182b3757 100755 --- a/bin/flutter +++ b/bin/flutter @@ -37,7 +37,12 @@ export PATH="$DART_SDK_PATH/bin:$PATH" set +e -"$DART" "$SNAPSHOT_PATH" "$@" +if [ $FLUTTER_DEV ]; then + echo -e "(FLUTTER_DEV set - ignoring $SNAPSHOT_PATH)\n" + "$DART" --package-root="$FLUTTER_TOOLS_DIR/packages" "$SCRIPT_PATH" "$@" +else + "$DART" "$SNAPSHOT_PATH" "$@" +fi # The VM exits with code 253 if the snapshot version is out-of-date. # If it is, we need to snapshot it again.