diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2017-02-13 20:42:49 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2017-02-13 20:42:49 +0000 |
commit | bc10573bdd10b56c7ced7a9b63a133a40a92cd1e (patch) | |
tree | 554b026e579e22c177820fa64dfb41229b4ab1db /start-container-schroot.sh | |
parent | 7fef9983c489a2fc8dd354f61bfb672748511c60 (diff) |
start-container-*.sh: Append .tcwglab only if not already present.
Change-Id: Id16401100dea2b74ff439aea1ab022b1f4807899
Diffstat (limited to 'start-container-schroot.sh')
-rwxr-xr-x | start-container-schroot.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/start-container-schroot.sh b/start-container-schroot.sh index 1d57409b..ebf2bfdd 100755 --- a/start-container-schroot.sh +++ b/start-container-schroot.sh @@ -75,7 +75,11 @@ done [ x${distro} = x ] && usage [ x"$session_host" = x ] && session_host=localhost -session_host=${session_host}.tcwglab +# Append .tcwglab if not already present +case ${session_host} in + *.tcwglab) ;; + *) session_host=${session_host}.tcwglab +esac session_port=22 schroot_image="tcwg-${task}-${container_arch}-${distro}" |