Fix title renaming for a new note

vimbundler
nirenjan 2013-01-24 19:27:39 -08:00
parent 5f04cc0040
commit 76f1a4eff0
1 changed files with 6 additions and 0 deletions

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)