diff options
author | Karel Kočí <cynerd@email.cz> | 2023-09-13 09:54:28 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2023-09-13 09:54:28 +0200 |
commit | 8553b18626590e45dbb3a51210e919917632854a (patch) | |
tree | c6f30b194d8d943e08634c2f56ab2516ca134e09 /tools | |
parent | 87249a5408b608da7c83144ccb4abf7e06c5ba3a (diff) | |
download | nixos-personal-8553b18626590e45dbb3a51210e919917632854a.tar.gz nixos-personal-8553b18626590e45dbb3a51210e919917632854a.tar.bz2 nixos-personal-8553b18626590e45dbb3a51210e919917632854a.zip |
nixos: allow deploy to lipwig with cynerd.cz and format fix
Diffstat (limited to 'tools')
-rw-r--r-- | tools/common.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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" } |