Fixed a bug where a newly-created note would contain an edit notice
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -125,7 +125,7 @@ else
|
||||
-ce)
|
||||
NOTE="${ARGS[$INDEX]}"
|
||||
create
|
||||
edit
|
||||
NO_HEADER="TRUE" edit
|
||||
exit 0
|
||||
;;
|
||||
-d|--delete)
|
||||
|
||||
Reference in New Issue
Block a user