be more explicit when a slice IP can't be found
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 19 Jun 2012 15:19:21 +0000 (17:19 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Tue, 19 Jun 2012 15:19:21 +0000 (17:19 +0200)
sshsh

diff --git a/sshsh b/sshsh
index dfa03c0..b7a0264 100755 (executable)
--- a/sshsh
+++ b/sshsh
@@ -18,4 +18,6 @@ if [ -n "$verbose" ]; then
     echo "========== end /var/lib/libvirt/dnsmasq/default.leases"
 fi
 
+[ -z "$IP" ] && { echo "No IP found" ; exit 1; }
+
 exec ssh -o StrictHostKeyChecking=no root@$IP "$@"