[flutter_tools] exec rather than spawn subprocess from bin/internal/shared.sh (#99871)

This commit is contained in:
Christopher Fujino
2022-03-14 13:35:18 -07:00
committed by GitHub
parent b33249c344
commit bb4a5fa7ab
3 changed files with 98 additions and 2 deletions

View File

@@ -222,10 +222,10 @@ function shared::execute() {
flutter*)
# FLUTTER_TOOL_ARGS aren't quoted below, because it is meant to be
# considered as separate space-separated args.
"$DART" --disable-dart-dev --packages="$FLUTTER_TOOLS_DIR/.packages" $FLUTTER_TOOL_ARGS "$SNAPSHOT_PATH" "$@"
exec "$DART" --disable-dart-dev --packages="$FLUTTER_TOOLS_DIR/.packages" $FLUTTER_TOOL_ARGS "$SNAPSHOT_PATH" "$@"
;;
dart*)
"$DART" "$@"
exec "$DART" "$@"
;;
*)
>&2 echo "Error! Executable name $BIN_NAME not recognized!"