From cef76cd1b0ae32ba1d9733c9d09d62de24559743 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 29 Jul 2023 08:52:48 -0300 Subject: bin/*: Add matching parenthesis to case clauses --- bin/msg | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'bin/msg') diff --git a/bin/msg b/bin/msg index 6bf875f..4f09a1d 100755 --- a/bin/msg +++ b/bin/msg @@ -45,15 +45,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -86,7 +86,7 @@ while getopts '01XsSmDbh' flag; do XMPP=true ACTION_DONE=true ;; - s) + (s) SOUND=true ACTION_DONE=true ;; @@ -94,7 +94,7 @@ while getopts '01XsSmDbh' flag; do SPEAK=true ACTION_DONE=true ;; - m) + (m) MAIL=true ACTION_DONE=true ;; @@ -102,16 +102,16 @@ while getopts '01XsSmDbh' flag; do DESKTOP=true ACTION_DONE=true ;; - b) + (b) BELL=true ACTION_DONE=true ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; -- cgit v1.2.3