make -e honor test mode status
1 parent 0ca70e4 commit 39be14eb12cdd34de540b3b328e0eea0c8028ea5
@tundra tundra authored on 27 Oct 2016
Showing 1 changed file
View
10
trm.sh
{
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"
echo " -s don't generate serial number suffixes"
;;
 
# 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
g)