Skip to content

Commit

Permalink
Don't clobber existing notes
Browse files Browse the repository at this point in the history
  • Loading branch information
lvn committed Jan 10, 2017
1 parent b011c9f commit b7a6d6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion new
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ shift
note_date=$(date -j "+%m-%d-%Y")
note_path="./$TERM/$course_name/$1.md"
shift
note_title=$@
note_title="$@"

[[ -e $note_path ]] && exit 3

# do the thing
format_notes "$note_title" "$course_info" "$note_date" > $note_path
Expand Down

0 comments on commit b7a6d6a

Please sign in to comment.