Fix EMPTY_ONLY_MODE definition
This commit is contained in:
parent
4e87760e43
commit
036975b8fc
|
@ -70,6 +70,12 @@ define_vars() { # {{{
|
||||||
sge_hostname="$(hostname -f)"
|
sge_hostname="$(hostname -f)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
## If EMPTY_ONLY_MODE wasn't defined (argument, environment variable,…)
|
||||||
|
if [ -z "${EMPTY_ONLY_MODE}" ]; then
|
||||||
|
### Set False by default
|
||||||
|
EMPTY_ONLY_MODE="1"
|
||||||
|
fi
|
||||||
|
|
||||||
## Script used to disable SGE queue(s)
|
## Script used to disable SGE queue(s)
|
||||||
sge_disable_host_queue_script="${PROGDIR}/sge.disable.host.queue.sh"
|
sge_disable_host_queue_script="${PROGDIR}/sge.disable.host.queue.sh"
|
||||||
|
|
||||||
|
@ -206,7 +212,7 @@ if [ ! "${NBARGS}" -eq "0" ]; then
|
||||||
DEBUG=0
|
DEBUG=0
|
||||||
;;
|
;;
|
||||||
-e|--empty ) ## Empty only mode
|
-e|--empty ) ## Empty only mode
|
||||||
EMPTY_ONLY_MODE=0
|
EMPTY_ONLY_MODE="0"
|
||||||
;;
|
;;
|
||||||
-h|--help ) ## help
|
-h|--help ) ## help
|
||||||
usage
|
usage
|
||||||
|
|
Loading…
Reference in New Issue