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}
|
BUILD=${BUILD:=default}
|
||||||
LAB=${LAB:=0}
|
LAB=${LAB:=0}
|
||||||
|
|
||||||
[ -r .lock${LAB} ] && {
|
|
||||||
echo "Lock file for LAB${LAB}, bailing"
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
|
|
||||||
## Do not touch below this line
|
## Do not touch below this line
|
||||||
LABDIR=/var/lab
|
LABDIR=/var/lab
|
||||||
STAGING=$LABDIR/staging
|
STAGING=$LABDIR/staging
|
||||||
@ -18,6 +13,11 @@ CMD=$1
|
|||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[ -r .lock${LAB} ] && {
|
||||||
|
echo "Lock file for LAB${LAB}, bailing"
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
VMS=$(ls -1 build/${BUILD}/${HVN}/)
|
VMS=$(ls -1 build/${BUILD}/${HVN}/)
|
||||||
|
|
||||||
for VM in $VMS; do
|
for VM in $VMS; do
|
||||||
|
Reference in New Issue
Block a user