mirror of https://github.com/nirenjan/dotfiles.git
Fix title renaming for a new note
parent
5f04cc0040
commit
76f1a4eff0
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue