From 4b0ee6da939d1375af90157ceccfe3803155048a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Tue, 23 Nov 2021 16:35:43 +0100 Subject: [PATCH] Add FORCE_MODE --- cluster/sge.disable.host.queue.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cluster/sge.disable.host.queue.sh b/cluster/sge.disable.host.queue.sh index 3d6c5e0..193e8d3 100755 --- a/cluster/sge.disable.host.queue.sh +++ b/cluster/sge.disable.host.queue.sh @@ -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