File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2792,7 +2792,12 @@ for host in "${ALL_HOSTS[@]}"; do
2792
2792
# executing ninja directly, have it dump the commands it would
2793
2793
# run, strip Ninja's progress prefix with sed, and tell the
2794
2794
# shell to execute that.
2795
- sh -e -x -c " $( " ${build_cmd[@]} " -n -v ${target} | sed -e ' s/[^]]*] //' ) "
2795
+ # However, if we do this in a subshell in the ``sh -e -x -c`` line,
2796
+ # errors in the command will not stop the script as they should.
2797
+ echo " Generating dry run test command from: ${build_cmd[@]} -n -v ${target} "
2798
+ dry_run_command_output=" $( ${build_cmd[@]} -n -v ${target} | sed -e ' s/[^]]*] //' ) "
2799
+ echo " Test command: ${dry_run_command_output} "
2800
+ sh -e -x -c " ${dry_run_command_output} "
2796
2801
else
2797
2802
call " ${build_cmd[@]} " ${BUILD_TARGET_FLAG} ${target}
2798
2803
fi
You can’t perform that action at this time.
0 commit comments