From 0f4b741c9a7cb71e8cbb990d3de2db06516e41f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 7 Nov 2023 16:08:34 +0100 Subject: tools: fix bug when used with cynerd.cz --- tools/common.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/common.sh b/tools/common.sh index a563171..f74f38f 100644 --- a/tools/common.sh +++ b/tools/common.sh @@ -45,8 +45,9 @@ sshdest() { sshhost() { if [ "$1" = "cynerd.cz" ]; then echo "lipwig" + else + awk -F. 'NF > 1 { print $2"-"$1; exit } { print $1 }' <<<"$1" fi - awk -F. 'NF > 1 { print $2"-"$1; exit } { print $1 }' <<<"$1" } _ssh() { -- cgit v1.2.3