Fix EMPTY_ONLY_MODE definition

This commit is contained in:
Jeremy Gardais 2020-12-04 08:36:04 +01:00
parent 4e87760e43
commit 036975b8fc
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 7 additions and 1 deletions

View File

@ -70,6 +70,12 @@ define_vars() { # {{{
sge_hostname="$(hostname -f)"
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)
sge_disable_host_queue_script="${PROGDIR}/sge.disable.host.queue.sh"
@ -206,7 +212,7 @@ if [ ! "${NBARGS}" -eq "0" ]; then
DEBUG=0
;;
-e|--empty ) ## Empty only mode
EMPTY_ONLY_MODE=0
EMPTY_ONLY_MODE="0"
;;
-h|--help ) ## help
usage