From d317376171ead5615766c46392ba63d5397c763c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Thu, 4 Jun 2020 11:22:50 +0200 Subject: [PATCH] Add possibility to inherit DEBUG value --- cluster/disable.host.queue.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cluster/disable.host.queue.sh b/cluster/disable.host.queue.sh index 8d8d648..6b1313b 100755 --- a/cluster/disable.host.queue.sh +++ b/cluster/disable.host.queue.sh @@ -5,7 +5,8 @@ readonly PROGNAME=$(basename "${0}") readonly PROGDIR=$(readlink -m $(dirname "${0}")) readonly ARGS="${*}" readonly NBARGS="${#}" -readonly DEBUG=1 +## Test if DEBUG is already defined (by parent script,…) +[ -z "${DEBUG}" ] && readonly DEBUG=1 ## Colors readonly PURPLE='\033[1;35m'