aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-10-28 09:55:54 +0200
committerKarel Kočí <cynerd@email.cz>2022-10-28 09:55:54 +0200
commit0e5fb4a7eec85ef44e71eaea649d110a72fcb2aa (patch)
tree7796dabf9c21b183fe5ee63a27d2b01cd6ad0a38
parent4a224f073a9de8b40c293d8fe93df0ad93862ac7 (diff)
downloadnixos-personal-0e5fb4a7eec85ef44e71eaea649d110a72fcb2aa.tar.gz
nixos-personal-0e5fb4a7eec85ef44e71eaea649d110a72fcb2aa.tar.bz2
nixos-personal-0e5fb4a7eec85ef44e71eaea649d110a72fcb2aa.zip
common.sh: wrap lipwig to newlipwig for now
-rw-r--r--common.sh6
1 files changed, 5 insertions, 1 deletions
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