Move the lock check until after the arg parser
This commit is contained in:
10
command
10
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
|
||||
|
Reference in New Issue
Block a user