Script was modified to pass shellcheck
This commit is contained in:
@@ -2,8 +2,8 @@ function delete(){
|
||||
# Requires: $NOTE, $NOTE_DIR
|
||||
# Given a valid $NOTE, delete removes $NOTE from sns.
|
||||
|
||||
if [ -e "$NOTE_DIR/$NOTE" ]; then
|
||||
rm "$NOTE_DIR/$NOTE"
|
||||
if [ -e "$NOTES_DIR/$NOTE" ]; then
|
||||
rm "$NOTES_DIR/$NOTE"
|
||||
printf " - %s\n" "Deleted note: ${NOTE%.*}."
|
||||
else
|
||||
>&2 printf " $RED_COLOR!$RESET_COLOR %s\n" "Note ${NOTE%.*} does not exist."
|
||||
|
||||
Reference in New Issue
Block a user