diff options
Diffstat (limited to 'bin/vm')
-rwxr-xr-x | bin/vm | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -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 |