This commit is contained in:
Jon-William Lewis
2016-09-02 22:33:43 -05:00
parent 01ad35fa16
commit d68bf25803
5 changed files with 24 additions and 11 deletions

View File

@@ -31,8 +31,8 @@ function create(){
# If the note's notebook/section does not exist,
# create the appropriate folders.
if [ ! -d "$(dirname $FILE)" ]; then
mkdir -p "$(dirname $FILE)"
if [ ! -d "$(dirname "$FILE")" ]; then
mkdir -p "$(dirname "$FILE")"
fi
# Write the standard note header
@@ -58,7 +58,7 @@ function delete(){
if [ -e "$FILE" ]; then
printf "$RED_COLOR!!$RESET_COLOR %s%s" "Delete " "${NOTE%.*}"
read -p " (y/N) " YN
read -rp " (y/N) " YN
case "$YN" in
Y|y)
rm "$FILE"