Commit d2ff7a49 authored by Devon Carew's avatar Devon Carew

Merge pull request #2810 from devoncarew/flutter_dev

add support for a FLUTTER_DEV env var in the flutter script
parents 54d93395 6190c8fc
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment