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/htmlesc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bin/htmlesc') diff --git a/bin/htmlesc b/bin/htmlesc index 436ed54..5f3694f 100755 --- a/bin/htmlesc +++ b/bin/htmlesc @@ -43,15 +43,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -60,18 +60,18 @@ ENCODE=false DECODE=false while getopts 'edh' flag; do case "$flag" in - e) + (e) ENCODE=true ;; - d) + (d) DECODE=true ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; -- cgit v1.2.3