ned: bug fix
This commit is contained in:
parent
4b14f66e7e
commit
3af2360084
1 changed files with 2 additions and 1 deletions
|
@ -79,7 +79,8 @@ new() {
|
|||
# Note dir
|
||||
NEW_NOTE_DIR="$BASE_DIR/$(cd "$BASE_DIR" && fd -d 1 | sed 's-\./--g' | $FZF_SEARCH "$2")/notes" || exit
|
||||
|
||||
[ -d "${NEW_NOTE_DIR%/*}" ] || mkdir "${NEW_NOTE_DIR%/*}"
|
||||
# make the directory if it doesn't exist
|
||||
[ -d "${NEW_NOTE_DIR}" ] || mkdir "${NEW_NOTE_DIR}"
|
||||
|
||||
if [ -f "$NEW_NOTE_DIR/$NEW_NOTE_NAME" ]; then
|
||||
open_file "$NEW_NOTE_DIR/$NEW_NOTE_NAME"
|
||||
|
|
Loading…
Add table
Reference in a new issue