diff options
author | Karel Kočí <cynerd@email.cz> | 2022-10-28 09:55:54 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-10-28 09:55:54 +0200 |
commit | 0e5fb4a7eec85ef44e71eaea649d110a72fcb2aa (patch) | |
tree | 7796dabf9c21b183fe5ee63a27d2b01cd6ad0a38 | |
parent | 4a224f073a9de8b40c293d8fe93df0ad93862ac7 (diff) | |
download | nixos-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.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |