Fix title renaming for a new note

master
nirenjan 2013-01-24 19:27:39 -08:00
parent e2f3a1a7bd
commit 17e9f45505
1 changed files with 6 additions and 0 deletions

6
note
View File

@ -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)