From fb3e1ca2632050a5da80f9c71515c25f1893c2d8 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 2 May 2021 13:20:10 +0200 Subject: [PATCH] ++ " " --- notebook.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notebook.sh b/notebook.sh index 3d933dd..bceed5e 100755 --- a/notebook.sh +++ b/notebook.sh @@ -9,7 +9,7 @@ fi for notebook in nb1 nb2 nb3 bridge line hike freiheit; do found="" - echo "Looking for ${notebook}" + printf "Looking for ${notebook} ... " for place in place7 place10; do if [ -z "$found" ]; then fqdn=${notebook}.${place}.ungleich.ch @@ -18,9 +18,9 @@ for notebook in nb1 nb2 nb3 bridge line hike freiheit; do done if [ "$found" ]; then - echo Found ${notebook} in ${found} + echo found ${notebook} in ${found}: ${fqdn} ssh nico@${fqdn} ${cmd} else - echo "Did not reach ${notebook}" + echo "did not reach ${notebook}." fi done