fix
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 10 Apr 2015 13:59:42 +0000 (15:59 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 10 Apr 2015 13:59:42 +0000 (15:59 +0200)
lbuild-initvm.sh

index 307beb6..a8edc71 100755 (executable)
@@ -732,7 +732,7 @@ function wait_for_ssh () {
     lxc=$1; shift
 
     # if run in public_ip mode, we know the IP of the guest and it is specified here
-    guest_ip=$1; shift
+    [ -n "$1" ] && { guest_ip=$1; shift; }
 
     #wait max 2 min for sshd to start 
     success=""