From: Ralph Ronnquist Date: Sat, 26 Mar 2022 10:59:55 +0000 (+1100) Subject: handle missng name X-Git-Tag: deb_0.1~7 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=1d2caf8010011eac8f6e5d79cac03abcb6018953;p=rrq%2Foverlay-boot.git handle missng name --- diff --git a/overlay-go b/overlay-go index ef237fc..5cde886 100755 --- a/overlay-go +++ b/overlay-go @@ -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 <&2 && exit 1 +[ -z "$USPID" ] && echo "$NAME is snot running" >&2 && exit 1 if [ -z "$RSPID" ] ; then cat <&2