handle missng name
[rrq/overlay-boot.git] / overlay-go
index ef237fc51a836e42c46914a88295b399ec11540a..5cde886c8f9c8856c681e5d02740804ce7574226 100755 (executable)
@@ -5,10 +5,7 @@
 
 NAME="$1"
 
-if [ -z "$NAME" ] ; then
-    echo "Select subhost: $(list_running)"
-    exit 0
-fi
+[ -z "$NAME" ] && echo "Select subhost: $(list_running)" && exit 0
 
 read USPID RSPID <<EOF
 $(is_live $NAME)