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/open | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin/open') diff --git a/bin/open b/bin/open index 4dc56db..23c579c 100755 --- a/bin/open +++ b/bin/open @@ -38,27 +38,27 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done while getopts 'h' flag; do case "$flag" in - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -103,7 +103,7 @@ for f in "$@"; do mailto:*) alot compose "$f" ;; - *) + (*) DIR="$(cd -- "$(dirname -- "$0")"; pwd)" CMD="$(without-env PATH "$DIR" -- command -v xdg-open)" "$CMD" "$f" -- cgit v1.2.3