Files
vns/src/includes/delete.sns.sh
Jon-William Lewis 856b14242c Formatting changes
2016-02-10 23:34:49 -06:00

11 lines
339 B
Bash

function delete(){
#Requires: $NOTE, $NOTEBOOK, $SECTION, $NAME
# Given a valid $NOTE, delete removes $NOTE from sns.
if [ -e "$NOTE" ]; then
rm "$NOTE"
printf "\n%s\n" "Deleted note: $NOTEBOOK/$SECTION/$NAME."
else
printf "\n%s\n" "ERROR: Note $NOTEBOOK/$SECTION/$NAME does not exist."
fi
}