From 76c5b22d9f26583ebb37f7b7b2d8d97fc9af0079 Mon Sep 17 00:00:00 2001 From: auronandace Date: Sat, 5 Jul 2025 15:08:40 +0100 Subject: [PATCH] use spaces for whitespace --- build.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build.sh b/build.sh index da48a43f..ebbcdfe1 100755 --- a/build.sh +++ b/build.sh @@ -43,7 +43,7 @@ usage() } if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then - usage + usage exit fi @@ -55,17 +55,17 @@ FILESYSTEM_CONFIG="" while getopts ":c:f:a:dhXA6" opt do - case "$opt" in - a) ARCH="$OPTARG";; - c) CONFIG_NAME="$OPTARG";; - f) FILESYSTEM_CONFIG="$OPTARG";; + case "$opt" in + a) ARCH="$OPTARG";; + c) CONFIG_NAME="$OPTARG";; + f) FILESYSTEM_CONFIG="$OPTARG";; X) ARCH="x86_64";; A) ARCH="aarch64";; 6) ARCH="i686";; - h) usage;; - \?) echo "Unknown option -$OPTARG, try -h for help"; exit;; + h) usage;; + \?) echo "Unknown option -$OPTARG, try -h for help"; exit;; :) echo "-$OPTARG requires a value"; exit;; - esac + esac done shift $((OPTIND -1))