Fixed erroneous reference to former static ~/.sns BASEDIR

Added hook to actually delete a note if requested
Removed old, commented code
Simplified create and delete logic by removing unnecessary checks that make no sense to me now
Cleaned up output from create event
This commit is contained in:
Jon-William Lewis
2015-09-19 18:40:43 -05:00
committed by Jon-William Lewis
parent 337a1bf3a3
commit 35094aed04
5 changed files with 28 additions and 78 deletions

View File

@@ -19,8 +19,8 @@ fi
if [ "$ENCRYPTION" == "TRUE" ]; then
PROD_STR="Simple Note System (Encryption Enabled)"
EXT="$EXT"
if [ ! -d ~/.sns/tmp ]; then
mkdir -p ~/.sns/tmp
if [ ! -d "$BASEDIR"/tmp ]; then
mkdir -p "$BASEDIR"/tmp
fi
fi