diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index ffa69130..a6b2fb09 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -758,7 +758,7 @@ DOWNLIST(){ if [ "${1}" != "ignore" ]; then echo -e "${idsCL[LightRed]}${itemname}${spc}${host}${spc2}$(SHOW_TIME ${toterrtime})${idsCL[Default]}" else - if [ "${choice}" != "" ] && [ ${is} -eq ${choice} ]; then + if [ "${choice}" -gt 0 ] 2>/dev/null && [ ${is} -eq ${choice} ]; then [ ! -f ${NM_TMPFOLDER}/${ditem}.disable ] && touch ${NM_TMPFOLDER}/${ditem}.disable || rm -f ${NM_TMPFOLDER}/${ditem}.disable fi