Pass FLUTTER_TOOL_ARGS to snapshot command. (#29938)

This commit is contained in:
Jonah Williams
2019-03-27 15:24:08 -07:00
committed by GitHub
parent 76b9962fdd
commit 0a2175f133
3 changed files with 14 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ function upgrade_flutter () {
retry_upgrade
"$DART" --snapshot="$SNAPSHOT_PATH" --snapshot-kind=app-jit --packages="$FLUTTER_TOOLS_DIR/.packages" "$SCRIPT_PATH" training
"$DART" $FLUTTER_TOOL_ARGS --snapshot="$SNAPSHOT_PATH" --snapshot-kind=app-jit --packages="$FLUTTER_TOOLS_DIR/.packages" "$SCRIPT_PATH" training
echo "$revision" > "$STAMP_PATH"
fi
# The exit here is duplicitous since the function is run in a subshell,