diff --git a/trm.sh b/trm.sh index dcb2adc..469faa5 100755 --- a/trm.sh +++ b/trm.sh @@ -19,7 +19,7 @@ echo "usage: trm.sh -cehistvx -g graveyard [file|dir] ..." echo " where," echo " -c copy targets to graveyard, don't remove them" - echo " -e empty the current graveyard (permanent removal" + echo " -e empty the current graveyard (permanent removal)" echo " -h display this help screen" echo " -g graveyard use named graveyard instead of default" echo " -i interactive removal/copy" @@ -71,7 +71,10 @@ # Empty the graveyard e) - rm -rf ${VERBOSE} ${GRAVEYARD}/* ${GRAVEYARD}/.[-z]* + if [ -z "${TESTMODE}" ] + then + rm -rf ${VERBOSE} ${GRAVEYARD}/* ${GRAVEYARD}/.[-z]* + fi ;; # Name your own graveyard