summaryrefslogtreecommitdiff
path: root/tcwg-benchmark.sh
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2018-12-20 15:11:58 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2018-12-21 19:30:34 +0000
commitcc758640fc8b6684c319fe43eb76266f1f898f3a (patch)
tree31bafc45979aae1ea4800d56e57e1a069ee93cb7 /tcwg-benchmark.sh
parent432f1088fd44c6bb5408037e46da14ea16990ab0 (diff)
tcwg-benchmark.sh: Use '22' as default port for ssh:// type of toolchain_url
Change-Id: I4217c5c3f2b677f00a8bb43bb56b9044aa1b83ba
Diffstat (limited to 'tcwg-benchmark.sh')
-rwxr-xr-xtcwg-benchmark.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh
index ee86bf80..0b1e125e 100755
--- a/tcwg-benchmark.sh
+++ b/tcwg-benchmark.sh
@@ -53,6 +53,12 @@ case "$toolchain_url" in
build_container_host="$(echo $build | cut -d: -f 1)"
build_container_port="$(echo $build | cut -s -d: -f 2)"
;;
+ *:*)
+ # If no port is specified, use 22 (ssh default port)
+ build=${ccprefix%:*}
+ build_container_host="$(echo $build | cut -d: -f 1)"
+ build_container_port=22
+ ;;
esac
if [ "x$build_container_host" = "x" ]; then