Major reworking. Will bump alpha version when verified working

This commit is contained in:
Jon-William Lewis
2016-08-27 15:49:53 -05:00
parent 4966351673
commit 09d578fa05
5 changed files with 26 additions and 587 deletions

View File

@@ -21,7 +21,6 @@ function create(){
# Given a valid setup, create writes the standard note header as specified
# by p_header, to $NOTE.
declare -r FILE="$NOTES_DIR/$NOTE.$EXT"
echo "$FILE"
# Refuse to overwrite a note
if [ -e "$FILE" ]; then
>&2 printf "$RED_COLOR!$RESET_COLOR %s\n\t%s\n"\
@@ -101,12 +100,9 @@ fi
if [ "$ENCRYPTION" == "TRUE" ]; then
cp "$FILE" "$FILE.bk" #Insurance
TMP_NOTE="$TMP_DIR/$SESSION_ID"
echo "$TMP_NOTE"
decrypt > "$TMP_NOTE"
else
TMP_NOTE="$FILE";
echo "$TMP_NOTE"
fi
# Write an ammendment header