Ensure that passing in no custom vars doesn't terminate execution. Thanks Scott!

pull/408/head
Ani Balasubramaniam 2020-03-22 11:21:56 -07:00
parent 37eee9b183
commit dc495d72ce
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,8 @@ DOCKER="docker"
# Ensure that any config variables we passed in are written to an env_file
# so invocations in subsquent shells preserve these values
printenv | grep 'FWVERSION=\|SERIAL=\|ROOTUSER\|ROOTUSERPASS' > "$DIR/.customvars"
# Add || true so passing no custom vars doesn't bork up execution
printenv | grep 'FWVERSION=\|SERIAL=\|ROOTUSER\|ROOTUSERPASS' || true > "$DIR/.customvars"
if ! ${DOCKER} ps >/dev/null 2>&1; then
DOCKER="sudo docker"