mirror of https://github.com/nirenjan/dotfiles.git
				
				
				
			Fix title renaming for a new note
							parent
							
								
									e2f3a1a7bd
								
							
						
					
					
						commit
						17e9f45505
					
				
							
								
								
									
										6
									
								
								note
								
								
								
								
							
							
						
						
									
										6
									
								
								note
								
								
								
								
							| 
						 | 
					@ -127,6 +127,12 @@ parse_args() {
 | 
				
			||||||
        note_new_file=$(make_title $note_new_title)
 | 
					        note_new_file=$(make_title $note_new_title)
 | 
				
			||||||
        check_md5 $note_file
 | 
					        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
 | 
					        cd $NOTES_DIR
 | 
				
			||||||
        gitfile=$(basename $note_new_file)
 | 
					        gitfile=$(basename $note_new_file)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue