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 fi
# Write an ammendment header # Write an ammendment header
if [ -z "$CREATE" ]; then if [ -z "$NO_HEADER" ]; then
printf "\n%s\n" "edit - $(date "$DATE_FMT")" >> "$TMP_NOTE" printf "\n%s\n" "edit - $(date "$DATE_FMT")" >> "$TMP_NOTE"
printf "%s\n" "===================================" >> "$TMP_NOTE" printf "%s\n" "===================================" >> "$TMP_NOTE"
fi fi

View File

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