Add FORCE_MODE

This commit is contained in:
Jeremy Gardais 2021-11-23 16:35:43 +01:00
parent 1781803123
commit 4b0ee6da93
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,9 @@ readonly NBARGS="${#}"
## Test if DEBUG is already defined (by parent script,…)
[ -z "${DEBUG}" ] && DEBUG=1
## Disable FORCE_MODE by default
FORCE_MODE=1
## Colors
readonly PURPLE='\033[1;35m'
readonly RED='\033[0;31m'
@ -313,6 +316,9 @@ if [ ! "${NBARGS}" -eq "0" ]; then
-d|--debug ) ## debug
DEBUG=0
;;
-f|--force ) ## Force to disable SGE queue
FORCE_MODE=0
;;
--help ) ## help
usage
## Exit after help informations