Major reworking. Will bump alpha version when verified working
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user