summaryrefslogtreecommitdiff
path: root/start-container-qemu.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 /start-container-qemu.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 'start-container-qemu.sh')
-rwxr-xr-xstart-container-qemu.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/start-container-qemu.sh b/start-container-qemu.sh
index 436198dc..b20bb2f3 100755
--- a/start-container-qemu.sh
+++ b/start-container-qemu.sh
@@ -67,7 +67,7 @@ nfsip=$(ssh $host docker inspect --format "{{.NetworkSettings.IPAddress}}" "$con
# Note, for NFS server to work inside container kernel should have
# NFS module loaded, which seems easiest achieved by installing "nfs-kernel-server"
# package on the host.
-bind_mounts=($(print_bind_mounts "$task" "ssh $host"))
+IFS=" " read -r -a bind_mounts <<< "$(print_bind_mounts "$task" "ssh $host")"
echo "$nfsroot *(rw,async,no_root_squash,no_subtree_check,insecure)" | container_exec sudo tee -a /etc/exports
test_array bind_mounts && for bind_mount in "${bind_mounts[@]}"; do
dir="$(echo $bind_mount | cut -d: -f 1)"