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/vcs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bin/vcs') diff --git a/bin/vcs b/bin/vcs index 23ad8f8..7c9bce6 100755 --- a/bin/vcs +++ b/bin/vcs @@ -214,15 +214,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -232,24 +232,24 @@ while getopts 'C:lth' flag; do C) cd "$OPTARG" ;; - l) + (l) # shellcheck disable=2086 echo $TYPES | tr ' ' '\n' exit ;; - t) + (t) guess_type "$PWD" || { printf 'Could not guess the type of the repository.\n' >&2 exit 2 } exit ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 esac -- cgit v1.2.3