diff options
author | David Spickett <david.spickett@linaro.org> | 2020-04-21 16:06:08 +0100 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2020-04-22 13:53:59 +0100 |
commit | 2382c087b5f0d51a4556c8c62f4723ab5a0ab7c9 (patch) | |
tree | 70c781a3087d886dc08a92767b6754991858fd7b /tcwg-benchmark.sh | |
parent | 7dac1306e35858ef6485a0abf6222f6e13a28ee0 (diff) |
Various shellcheck warning fixes
First round of low hanging fruit
from the files with the fewest
warnings.
Change-Id: I60ad57b5bfb2f0be9bb6506252c820f44d055200
Diffstat (limited to 'tcwg-benchmark.sh')
-rwxr-xr-x | tcwg-benchmark.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh index 9a74eadd..bd41d76b 100755 --- a/tcwg-benchmark.sh +++ b/tcwg-benchmark.sh @@ -8,6 +8,7 @@ set -ex # for empty arguments. bench_container_tag="${bench_container_tag-bionic}" build_container_tag="${build_container_tag-bionic}" +image_arch="$image_arch" toolchain_url="$toolchain_url" toolchain_type="${toolchain_type-auto}" bench_list="$bench_list" @@ -104,7 +105,7 @@ case "$toolchain_url" in # architecture as the machine pointed to by $toolchain_url). # Assume ccprefix looks like /path/bin/target-triplet-, and # compute 'path'. - src_toolchaindir=$(dirname $(dirname ${ccprefix})) + src_toolchaindir=$(dirname "$(dirname ${ccprefix})") toolchaindir="${WORKSPACE}/toolchain-${BUILD_NUMBER}" rsync -az --delete "$src_toolchaindir/" "$toolchaindir/" ;; @@ -156,7 +157,7 @@ case "$toolchain_url" in "llvm") ccname="clang" ;; esac ccpath=$($maybe_remote find "$toolchaindir" -path "*bin/*$ccname") - if [ $(echo "$ccpath" | wc -w) -ne 1 ]; then + if [ "$(echo "$ccpath" | wc -w)" -ne 1 ]; then echo "ERROR: found more than one compiler: $ccpath" exit 1 fi |