summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2017-06-02 11:43:53 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2017-06-02 11:43:53 +0000
commitd2ab39f5e69bc1e6f11f59da4e1d3f48d5d7983e (patch)
treed6d3f857ef93db7e3ebb266f5b221758aca8076e
parent8d86c9fda3af374ea179fbfe84a9369b2e4f4b17 (diff)
tcwg-benchmark.sh: Cleanup.
Change-Id: I1fd67a58427e2c1393289b49a71f32835b72a7c4
-rwxr-xr-xtcwg-benchmark.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh
index e5463001..a24466ff 100755
--- a/tcwg-benchmark.sh
+++ b/tcwg-benchmark.sh
@@ -54,14 +54,14 @@ case "$toolchain_url" in
# shellcheck disable=SC2046
tarball="$(ls $(basename "$toolchain_url"))"
tar xf "${tarball}"
- toolchaindir=$(echo "${tarball}" | sed 's/.tar.xz//')
- ccpath=$(find "$WORKSPACE/$toolchaindir" -name "*-gcc")
+ toolchaindir="$WORKSPACE/$(echo "${tarball}" | sed 's/.tar.xz//')"
+ ccpath=$(find "$toolchaindir" -name "*-gcc")
ccprefix=$(echo "$ccpath" | sed -e 's/-gcc$/-/')
# Copy toolchain to the build container.
- rsync -a --delete -e "ssh -p$build_container_port" "$WORKSPACE/$toolchaindir/" "$build_container_host:$WORKSPACE/$toolchaindir/"
+ rsync -a --delete -e "ssh -p$build_container_port" "$toolchaindir/" "$build_container_host:$toolchaindir/"
ccprefix="$build_container_host:$build_container_port:$ccprefix"
if [ x"$sysroot" = x"tarball" ]; then
- sysroot="$build_container_host:$(find "$WORKSPACE/$toolchaindir" -name "libc")"
+ sysroot="$build_container_host:$(find "$toolchaindir" -name "libc")"
fi
;;
*)