From 0b52e8bad7e634e6295825f3b92e88e7149d36f1 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 5 May 2021 10:54:52 +0200 Subject: [PATCH] updated by /home/nico/bin/sync-all-repos on nb3 --- notebook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook.sh b/notebook.sh index bceed5e..06cf03f 100755 --- a/notebook.sh +++ b/notebook.sh @@ -13,7 +13,7 @@ for notebook in nb1 nb2 nb3 bridge line hike freiheit; do for place in place7 place10; do if [ -z "$found" ]; then fqdn=${notebook}.${place}.ungleich.ch - ping -c2 ${fqdn} >/dev/null && found=$place + ping -c2 ${fqdn} >/dev/null 2>&1 && found=$place fi done