diff options
| author | danix <danix@danix.xyz> | 2023-04-10 10:21:09 +0200 |
|---|---|---|
| committer | danix <danix@danix.xyz> | 2023-04-10 10:21:09 +0200 |
| commit | f1343f207a71b79c69474bd0205fa09b46a6a876 (patch) | |
| tree | bcda2c09965c560074e0134932920aaf4204fbc3 /notes.sh | |
| parent | efa3e6079384bc77f194081dff89361e4eda87b2 (diff) | |
| download | bash-notes-f1343f207a71b79c69474bd0205fa09b46a6a876.tar.gz bash-notes-f1343f207a71b79c69474bd0205fa09b46a6a876.zip | |
Added sleep 1 sec after deleting notes to allow the user to read the
message before the window closes.
modified: SOURCE/CORE/core-remove.sh
modified: notes.sh
Diffstat (limited to 'notes.sh')
| -rwxr-xr-x | notes.sh | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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" + sleep 1 exit 1 fi @@ -393,8 +394,11 @@ function rmnote() { mv $TMPDB $DB rm $NOTESDIR/$FILE echo "Deleted note $TITLE" + sleep 1 + exit else echo "note not found" + sleep 1 exit 1 fi fi |
