Ensure that passing in no custom vars doesn't terminate execution. Thanks Scott!
This commit is contained in:
parent
37eee9b183
commit
dc495d72ce
|
@ -7,7 +7,8 @@ DOCKER="docker"
|
||||||
|
|
||||||
# Ensure that any config variables we passed in are written to an env_file
|
# Ensure that any config variables we passed in are written to an env_file
|
||||||
# so invocations in subsquent shells preserve these values
|
# 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
|
if ! ${DOCKER} ps >/dev/null 2>&1; then
|
||||||
DOCKER="sudo docker"
|
DOCKER="sudo docker"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user