From fb011af9db88e8d5d78c9f5de5171d9a85d3451b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 8 Nov 2023 23:09:21 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 36af6a01..8c28275e 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -759,7 +759,9 @@ DOWNLIST(){ if [ "${1}" != "ignore" ]; then echo -e "${idsCL[LightRed]}${itemname}${spc}${host}${spc2}$(SHOW_TIME ${toterrtime})${idsCL[Default]}" else - [ "${choice}" != "" ] && [ ${is} -eq `expr ${choice} - 1` ] && touch ${NM_TMPFOLDER}/${ditem}.disable + if [ "${choice}" != "" ] && [ ${is} -eq ${choice} ]; then + [ ! -f ${NM_TMPFOLDER}/${ditem}.disable ] && touch ${NM_TMPFOLDER}/${ditem}.disable || rm -f ${NM_TMPFOLDER}/${ditem}.disable + fi [ ${is} -lt 10 ] && ignsel=" ${is}) " || ignsel="${is}) " [ -f ${NM_TMPFOLDER}/${ditem}.disable ] && dstatus="OFF" || dstatus="${idsCL[Yellow]}on"