diff options
Diffstat (limited to 'notes.sh')
| -rwxr-xr-x | notes.sh | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -236,6 +236,7 @@ function editnote() { echo "note not found" exit 1 fi + exit } function listnotes() { # [ $PLAIN == true ] && echo "output is plain text" || echo "output is colored" @@ -366,6 +367,7 @@ while true; do esac shift 2 addnote "$TITLE" + exit ;; -e | --edit ) case "$2" in @@ -378,6 +380,7 @@ while true; do esac shift 2 editnote "$NOTE" + exit ;; -d | --delete ) case "$2" in @@ -390,6 +393,7 @@ while true; do esac shift 2 rmnote "$NOTE" + exit ;; -s | --show ) case "$2" in @@ -402,6 +406,7 @@ while true; do esac shift 2 shownote "$NOTE" + exit ;; --userconf ) export_config @@ -419,7 +424,3 @@ while true; do ;; esac done - -if [ -z $1 ]; then - helptext -fi |
