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/vm | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'bin/vm') diff --git a/bin/vm b/bin/vm index f45fd47..b123ee5 100755 --- a/bin/vm +++ b/bin/vm @@ -95,15 +95,15 @@ help() { for flag in "$@"; do case "$flag" in - --) + (--) break ;; - --help) + (--help) usage help exit ;; - *) + (*) ;; esac done @@ -120,31 +120,31 @@ while getopts 'Gi:m:np:Svh' flag; do G) GRAPHICS=true ;; - i) + (i) IMAGE="$OPTARG" ;; - m) + (m) MEMORY="$OPTARG" ;; - n) + (n) DRY_RUN=true VERBOSE=true ;; - p) + (p) PORTMAPS="$PORTMAPS $OPTARG" ;; S) SNAPSHOT=false ;; - v) + (v) VERBOSE=true ;; - h) + (h) usage help exit ;; - *) + (*) usage >&2 exit 2 ;; @@ -186,7 +186,7 @@ guess_arch() { amd64) printf 'x86_64' ;; - *) + (*) printf '%s' "$NAME" ;; esac -- cgit v1.2.3