Linting
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user