diff options
| author | danix <danix@danix.xyz> | 2023-03-29 11:51:37 +0200 |
|---|---|---|
| committer | danix <danix@danix.xyz> | 2023-03-29 11:51:37 +0200 |
| commit | 07d42c7a11d817e19c4fb81dcdd1ae97ede991e8 (patch) | |
| tree | be409f3f64e8c724e209c54fd15882d228a70569 /SOURCE | |
| parent | fb71118327216a21f6732161dc3721496a16370d (diff) | |
| download | bash-notes-07d42c7a11d817e19c4fb81dcdd1ae97ede991e8.tar.gz bash-notes-07d42c7a11d817e19c4fb81dcdd1ae97ede991e8.zip | |
removed conditional that printed the helptext after every command
Diffstat (limited to 'SOURCE')
| -rw-r--r-- | SOURCE/main.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/SOURCE/main.sh b/SOURCE/main.sh index da3130a..94f696d 100644 --- a/SOURCE/main.sh +++ b/SOURCE/main.sh @@ -37,6 +37,7 @@ while true; do esac shift 2 addnote "$TITLE" + exit ;; -e | --edit ) case "$2" in @@ -49,6 +50,7 @@ while true; do esac shift 2 editnote "$NOTE" + exit ;; -d | --delete ) case "$2" in @@ -61,6 +63,7 @@ while true; do esac shift 2 rmnote "$NOTE" + exit ;; -s | --show ) case "$2" in @@ -73,6 +76,7 @@ while true; do esac shift 2 shownote "$NOTE" + exit ;; --userconf ) export_config @@ -90,7 +94,3 @@ while true; do ;; esac done - -if [ -z $1 ]; then - helptext -fi |
