mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
autoninja: fix shellcheck warnings
Change-Id: Ic7ca117435de34400fdd117741d0b321339f8cfd Reviewed-on: https://chromium-review.googlesource.com/c/1325250 Commit-Queue: Yoshisato Yanagisawa <yyanagisawa@chromium.org> Reviewed-by: Dirk Pranke <dpranke@chromium.org>
This commit is contained in:
committed by
Commit Bot
parent
43a35d299b
commit
91de11099d
12
autoninja
12
autoninja
@@ -5,16 +5,16 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
# Set unique build ID.
|
||||
export AUTONINJA_BUILD_ID="$(python -c "import uuid; print uuid.uuid4()")"
|
||||
AUTONINJA_BUILD_ID="$(python -c "import uuid; print uuid.uuid4()")"
|
||||
export AUTONINJA_BUILD_ID
|
||||
|
||||
# Execute whatever is printed by autoninja.py.
|
||||
# Also print it to reassure that the right settings are being used.
|
||||
command=$(python $(dirname -- "$0")/autoninja.py "$@")
|
||||
echo $command
|
||||
eval $command
|
||||
if [ $? -eq 0 ]; then
|
||||
command=$(python "$(dirname -- "$0")/autoninja.py" "$@")
|
||||
echo "$command"
|
||||
if eval "$command"; then
|
||||
if [ "$NINJA_SUMMARIZE_BUILD" == "1" ]; then
|
||||
python $(dirname -- "$0")/post_build_ninja_summary.py $@
|
||||
python "$(dirname -- "$0")/post_build_ninja_summary.py" "$@"
|
||||
fi
|
||||
exit
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user