Script was modified to pass shellcheck

This commit is contained in:
Jon-William Lewis
2016-02-15 11:36:08 -06:00
parent 7085a46ef3
commit ca398122f3
4 changed files with 8 additions and 8 deletions

View File

@@ -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."