aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/common.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/common.sh b/tools/common.sh
index a563171..f74f38f 100644
--- a/tools/common.sh
+++ b/tools/common.sh
@@ -45,8 +45,9 @@ sshdest() {
sshhost() {
if [ "$1" = "cynerd.cz" ]; then
echo "lipwig"
+ else
+ awk -F. 'NF > 1 { print $2"-"$1; exit } { print $1 }' <<<"$1"
fi
- awk -F. 'NF > 1 { print $2"-"$1; exit } { print $1 }' <<<"$1"
}
_ssh() {