diff --git a/command b/command index 5645182..608e593 100755 --- a/command +++ b/command @@ -2,11 +2,6 @@ BUILD=${BUILD:=default} LAB=${LAB:=0} -[ -r .lock${LAB} ] && { - echo "Lock file for LAB${LAB}, bailing" - exit -} - ## Do not touch below this line LABDIR=/var/lab STAGING=$LABDIR/staging @@ -18,6 +13,11 @@ CMD=$1 exit } +[ -r .lock${LAB} ] && { + echo "Lock file for LAB${LAB}, bailing" + exit +} + VMS=$(ls -1 build/${BUILD}/${HVN}/) for VM in $VMS; do