Reworked print function

This commit is contained in:
Jon-William Lewis
2016-01-25 21:00:43 -06:00
parent 8fc731aaa0
commit 2d8db83c3c
6 changed files with 29 additions and 95 deletions

View File

@@ -6,7 +6,8 @@ fi
if [ "$ENCRYPTION" == "TRUE" ]; then
cp "$NOTE" "$NOTE".bk
decrypt
if [ ! -d "$ROOT_DIR"/tmp ]; then mkdir "$ROOT_DIR"/tmp; fi
decrypt > "$TMP_DIR/$RANDOM"
else TARGET="$NOTE"; fi
@@ -19,7 +20,4 @@ if [ "$ENCRYPTION" == "TRUE" ]; then
encrypt;
if [ -r "$NOTE" ]; then rm "$NOTE".bk; fi
fi
}