Files
vns/functions/delete.sns.sh
Jon-William Lewis 45717e33b5 Simple Note System v2.0a2
Changes:
Split script into several different files for easier editting
Added build.sh to compile Simple Note System from tree
Changed config file to config folder; $HOME/.sns now contains configuration and notes

Testing:
Script runs and produces help screen; no further testing done.
2015-03-18 12:52:00 -05:00

21 lines
301 B
Bash

# delete.sns.sh
if [ "$DELETE" == "TRUE" ]; then
if [ -e $NOTE -o -e ${NOTE%.*} ]; then
if [ "$ENCRYPTION" == "TRUE" ]; then
rm ${NOTE%.*}
else
rm $NOTE
fi
echo ""
echo "Deleted note: $NOTEBOOK/$SECTION$NAME."
exit
else
echo ""
echo "ERROR: Note $NOTEBOOK/$SECTION$NAME does not exist."
exit
fi
fi