From 0e5fb4a7eec85ef44e71eaea649d110a72fcb2aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 28 Oct 2022 09:55:54 +0200 Subject: common.sh: wrap lipwig to newlipwig for now --- common.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common.sh b/common.sh index 7cc262a..cf8c175 100644 --- a/common.sh +++ b/common.sh @@ -32,7 +32,11 @@ warning() { # Convert hostname to the SSH destination sshdest() { - awk -F- 'NF > 1 { print $2"."$1; exit } { print $1 }' <<<"$1" + if [ "$1" = "lipwig" ]; then + echo "newlipwig" + else + awk -F- 'NF > 1 { print $2"."$1; exit } { print $1 }' <<<"$1" + fi } # Reverse opeartion for sshdest -- cgit v1.2.3