diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index f0bf4744..9411bdff 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -663,19 +663,19 @@ DOWNLIST(){ if [ "${DOWN_LIST}" == "" ]; then echo -e "${idsCL[LightCyan]}Nothing is down. Hooray for you!!${idsCL[Default]}" - function nicetry { - echo -e " LOL nice try... you can't stop this shit! DESTROY DESTROY DESTROY" - echo -en "Continue formatting local volumes faster." - for i in {1..5000}; do - sleep 1s - echo -en "." - done - echo -e "\n\nAwww, were you expecting some big ending :*(" - } - trap nicetry EXIT echo -en "\nWanna see something great for being so awesome? (y/N) " read -n1 great if [ "${great^^}" == "Y" ]; then + function nicetry { + echo -e " LOL nice try... you can't stop this shit! DESTROY DESTROY DESTROY" + echo -en "Continue formatting local volumes faster." + for i in {1..5000}; do + sleep 1s + echo -en "." + done + echo -e "\n\nAwww, were you expecting some big ending :*(" + } + trap nicetry EXIT echo -en "\n\nDiscovering local storage volumes ." sleep 1s; echo -en " ." sleep 2s; echo -en " ."