Fix the DIB_OFFLINE setting to actually work.
I missed the getopt parameter and forgot defaults are imported after option processing. Untested code is broken code! Change-Id: I133a691909d38e834c204950276a57f4884fc4ed
This commit is contained in:
parent
b2f1d4e2af
commit
f7f6cb45ee
@ -55,7 +55,7 @@ function show_options () {
|
|||||||
|
|
||||||
INSTALL_PACKAGES=""
|
INSTALL_PACKAGES=""
|
||||||
COMPRESS_IMAGE="true"
|
COMPRESS_IMAGE="true"
|
||||||
TEMP=`getopt -o a:ho:xucnp: -l no-tmpfs -n $SCRIPTNAME -- "$@"`
|
TEMP=`getopt -o a:ho:xucnp: -l no-tmpfs,offline -n $SCRIPTNAME -- "$@"`
|
||||||
if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
|
if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
|
||||||
|
|
||||||
# Note the quotes around `$TEMP': they are essential!
|
# Note the quotes around `$TEMP': they are essential!
|
||||||
|
@ -39,4 +39,4 @@ export DIB_NO_TMPFS=${DIB_NO_TMPFS:-0}
|
|||||||
_BASE_ELEMENT_DIR=$(dirname $0)/../elements
|
_BASE_ELEMENT_DIR=$(dirname $0)/../elements
|
||||||
ELEMENTS_PATH=${ELEMENTS_PATH:+"$ELEMENTS_PATH:$_BASE_ELEMENT_DIR"}
|
ELEMENTS_PATH=${ELEMENTS_PATH:+"$ELEMENTS_PATH:$_BASE_ELEMENT_DIR"}
|
||||||
export ELEMENTS_PATH=${ELEMENTS_PATH:-$_BASE_ELEMENT_DIR}
|
export ELEMENTS_PATH=${ELEMENTS_PATH:-$_BASE_ELEMENT_DIR}
|
||||||
export DIB_OFFLINE=''
|
export DIB_OFFLINE=${DIB_OFFLINE:-''}
|
||||||
|
Loading…
Reference in New Issue
Block a user