Add FORCE_MODE
This commit is contained in:
parent
1781803123
commit
4b0ee6da93
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue