From 8553b18626590e45dbb3a51210e919917632854a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 13 Sep 2023 09:54:28 +0200 Subject: nixos: allow deploy to lipwig with cynerd.cz and format fix --- tools/common.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') diff --git a/tools/common.sh b/tools/common.sh index dddb196..a563171 100644 --- a/tools/common.sh +++ b/tools/common.sh @@ -43,6 +43,9 @@ sshdest() { # Reverse opeartion for sshdest sshhost() { + if [ "$1" = "cynerd.cz" ]; then + echo "lipwig" + fi awk -F. 'NF > 1 { print $2"-"$1; exit } { print $1 }' <<<"$1" } -- cgit v1.2.3