Fixed a bug where a newly-created note would contain an edit notice

This commit is contained in:
Jon-William Lewis
2016-09-02 22:16:24 -05:00
parent 55a085a71f
commit c234dca619
2 changed files with 2 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ else
fi
# Write an ammendment header
if [ -z "$CREATE" ]; then
if [ -z "$NO_HEADER" ]; then
printf "\n%s\n" "edit - $(date "$DATE_FMT")" >> "$TMP_NOTE"
printf "%s\n" "===================================" >> "$TMP_NOTE"
fi

View File

@@ -125,7 +125,7 @@ else
-ce)
NOTE="${ARGS[$INDEX]}"
create
edit
NO_HEADER="TRUE" edit
exit 0
;;
-d|--delete)