danix
's git repository
home
/
my projects
/
bash-notes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added sleep 1 sec after deleting notes to allow the user to read the
[bash-notes.git]
/
notes.sh
diff --git
a/notes.sh
b/notes.sh
index
8a9c082
..
d0fd902
100755
(executable)
--- a/
notes.sh
+++ b/
notes.sh
@@
-379,6
+379,7
@@
function rmnote() {
if [ ! "$OK" ]; then
echo "invalid note \"$NOTE\""
echo "Use the note ID that you can fetch after listing your notes"
if [ ! "$OK" ]; then
echo "invalid note \"$NOTE\""
echo "Use the note ID that you can fetch after listing your notes"
+ sleep 1
exit 1
fi
exit 1
fi
@@
-393,8
+394,11
@@
function rmnote() {
mv $TMPDB $DB
rm $NOTESDIR/$FILE
echo "Deleted note $TITLE"
mv $TMPDB $DB
rm $NOTESDIR/$FILE
echo "Deleted note $TITLE"
+ sleep 1
+ exit
else
echo "note not found"
else
echo "note not found"
+ sleep 1
exit 1
fi
fi
exit 1
fi
fi