From 33a9acdfd2de83ef00df1b18ae9f4122f8b795a3 Mon Sep 17 00:00:00 2001 From: Stuart Morgan Date: Thu, 3 Jan 2019 19:40:01 -0800 Subject: [PATCH] [macos] Fix script handling of spaces in paths Currently building is broken when there are spaces in the path containing the local checkout of the repository. --- tools/build_flutter_assets | 2 +- tools/update_flutter_engine | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/build_flutter_assets b/tools/build_flutter_assets index c88e5a0d6..426faf88c 100755 --- a/tools/build_flutter_assets +++ b/tools/build_flutter_assets @@ -30,6 +30,6 @@ readonly flutter_binary="$flutter_dir/bin/flutter" #readonly build_type=host_debug_unopt #readonly extra_flags=(--local-engine-src-path $engine_src_path --local-engine=$build_type) -cd $1 +cd "$1" echo Running "$flutter_binary" ${extra_flags[*]} build bundle exec "$flutter_binary" ${extra_flags[*]} build bundle diff --git a/tools/update_flutter_engine b/tools/update_flutter_engine index c0619f122..e6e655549 100755 --- a/tools/update_flutter_engine +++ b/tools/update_flutter_engine @@ -21,4 +21,4 @@ readonly dart_bin_dir="$flutter_bin_dir/cache/dart-sdk/bin" if [[ ! -e $dart_bin_dir ]]; then "$flutter_bin_dir/flutter" precache fi -exec "$dart_bin_dir/dart" "$base_dir/dart_tools/bin/update_flutter_engine.dart" $@ +exec "$dart_bin_dir/dart" "$base_dir/dart_tools/bin/update_flutter_engine.dart" "$@"