diff --git a/bin/internal/shared.sh b/bin/internal/shared.sh index a305a97436..0915a32766 100644 --- a/bin/internal/shared.sh +++ b/bin/internal/shared.sh @@ -254,16 +254,16 @@ function shared::execute() { upgrade_flutter 7< "$SHARED_NAME" case "$BIN_NAME" in + flutter-dev) + # FLUTTER_TOOL_ARGS aren't quoted below, because it is meant to be + # considered as separate space-separated args. + exec "$DART" --packages="$FLUTTER_TOOLS_DIR/.dart_tool/package_config.json" $FLUTTER_TOOL_ARGS "$SCRIPT_PATH" "$@" + ;; flutter*) # FLUTTER_TOOL_ARGS aren't quoted below, because it is meant to be # considered as separate space-separated args. exec "$DART" --disable-dart-dev --packages="$FLUTTER_TOOLS_DIR/.dart_tool/package_config.json" $FLUTTER_TOOL_ARGS "$SNAPSHOT_PATH" "$@" ;; - flutter-dev*) - # FLUTTER_TOOL_ARGS aren't quoted below, because it is meant to be - # considered as separate space-separated args. - exec "$DART" --packages="$FLUTTER_TOOLS_DIR/.dart_tool/package_config.json" $FLUTTER_TOOL_ARGS "$SCRIPT_PATH" "$@" - ;; dart*) exec "$DART" "$@" ;;