Skip to content

Commit 0397cb6

Browse files
authored
Fix a few shellcheck warnings in sanitizer buildbot script
Reviewed By: asb Pull Request: llvm#298
1 parent 8a25920 commit 0397cb6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

zorg/buildbot/builders/sanitizers/buildbot_functions.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function cmake() {
8282
}
8383

8484
function rm_dirs {
85-
while ! rm -rf $@ ; do sleep 1; done
85+
while ! rm -rf "$@" ; do sleep 1; done
8686
}
8787

8888
function cleanup() {
@@ -94,7 +94,7 @@ function cleanup() {
9494
fi
9595
# Workaround the case when a new unittest was reverted, but incremental build continues to execute the leftover binary.
9696
find -path ./llvm-project -prune -o -executable -type f -path '*unittests*' -print -exec rm -f {} \;
97-
du -hs * | sort -h
97+
du -hs ./* | sort -h
9898
}
9999

100100
function clobber {
@@ -104,9 +104,9 @@ function clobber {
104104
echo "Clobbering is supported only on buildbot only!"
105105
exit 1
106106
fi
107-
rm_dirs *
107+
rm_dirs ./*
108108
else
109-
BUILDBOT_BUILDERNAME=1 cleanup $@
109+
BUILDBOT_BUILDERNAME=1 cleanup "$@"
110110
fi
111111
}
112112

@@ -204,7 +204,7 @@ function build_clang_at_release_tag {
204204
then
205205
echo "@@@BUILD_STEP using pre-built stage1 clang at r${host_clang_revision}@@@"
206206
else
207-
BUILDBOT_MONO_REPO_PATH= BUILDBOT_REVISION="${host_clang_revision}" buildbot_update
207+
BUILDBOT_MONO_REPO_PATH="" BUILDBOT_REVISION="${host_clang_revision}" buildbot_update
208208

209209
rm -rf ${STAGE1_DIR}
210210
echo @@@BUILD_STEP build stage1 clang at $host_clang_revision@@@

0 commit comments

Comments
 (0)