summaryrefslogtreecommitdiff
path: root/round-robin-bisect.sh
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2020-04-27 14:15:51 +0100
committerDavid Spickett <david.spickett@linaro.org>2020-04-30 09:56:12 +0100
commit5e5cdf3372932f00151ceff9388165201ebe5106 (patch)
tree80f8bf9ec3b1ec4605d4348f85e60eac258892ed /round-robin-bisect.sh
parent49aa56fa328bd43ea470c1c3cda41edbd970a40f (diff)
Shellcheck fixes round 4
Fixes for: https://github.com/koalaman/shellcheck/wiki/SC2207 Are using the bash 4.x 'mapfile' syntax where the input to the array is seperated by newlines. If it's separated by spaces we use 'read' instead. Support for selecting libc in MakeRelease.job was removed in 3fa23da28ad73d0fe4b512c4aab269b5280a6650. So remove references to "libc" which were expanding to nothing anyway. In tcwg-llvm-common.sh PROJECTS->BRANCHED_PROJECTS is not strictly needed. However shellcheck can't tell that the local PROJECTS in this file is different from the PROJECTS in tcwg-llvm-build.sh. Change-Id: Ie55968e3bf185d0bd5795fe48014636cda1009bc
Diffstat (limited to 'round-robin-bisect.sh')
-rwxr-xr-xround-robin-bisect.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/round-robin-bisect.sh b/round-robin-bisect.sh
index d48278b5..46bed870 100755
--- a/round-robin-bisect.sh
+++ b/round-robin-bisect.sh
@@ -290,9 +290,9 @@ push_interesting_commit ()
fi
if [ x"$kind" = x"regression" ]; then
- configs=($(grep "^$sha1" ../interesting-commits/$current_project | sed -e "s/^$sha1 *//"))
+ mapfile -t configs < <(grep "^$sha1" ../interesting-commits/$current_project | sed -e "s/^$sha1 *//")
configs+=("${rr[ci_project]}"/"${rr[ci_config]}")
- configs=($(echo "${configs[@]}" | tr ' ' '\n' | sort -u))
+ mapfile -t configs < <(echo "${configs[@]}" | tr ' ' '\n' | sort -u)
sed -i -e "s#^$sha1.*\$#$sha1 ${configs[*]}#" ../interesting-commits/$current_project
fi