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.
21 lines
301 B
Bash
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
|