From 76f1a4eff0f7df3418a090d5e86d2067021d7633 Mon Sep 17 00:00:00 2001 From: nirenjan Date: Thu, 24 Jan 2013 19:27:39 -0800 Subject: [PATCH] Fix title renaming for a new note --- scripts/note | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/note b/scripts/note index 8600851..fadc428 100755 --- a/scripts/note +++ b/scripts/note @@ -127,6 +127,12 @@ parse_args() { note_new_file=$(make_title $note_new_title) check_md5 $note_file + # Check for a title rename + if [[ "$note_file" != "$note_new_file" ]] + then + mv -f $note_file $note_new_file + fi + cd $NOTES_DIR gitfile=$(basename $note_new_file)