Formatting codes

This commit is contained in:
Howard Wu 2022-09-04 00:43:31 +08:00
parent bc48faf17a
commit 70bb0fdb8f
3 changed files with 37 additions and 37 deletions

View File

@ -80,7 +80,6 @@ function Gen_Rand_Str {
tr -dc 'a-zA-Z0-9' </dev/urandom | fold -w "$1" | head -n 1 tr -dc 'a-zA-Z0-9' </dev/urandom | fold -w "$1" | head -n 1
} }
default() { default() {
ARCH=x64 ARCH=x64
RELEASE_TYPE=retail RELEASE_TYPE=retail
@ -140,7 +139,7 @@ ROOT_SOL_MAP=(
ARR_TO_STR() { ARR_TO_STR() {
local arr=("$@") local arr=("$@")
local joined local joined
printf -v joined "%s, " "${arr[@]}"; printf -v joined "%s, " "${arr[@]}"
echo "${joined%, }" echo "${joined%, }"
} }
usage() { usage() {
@ -212,7 +211,8 @@ ARGUMENT_LIST=(
default default
opts=$(getopt \ opts=$(
getopt \
--longoptions "$(printf "%s," "${ARGUMENT_LIST[@]}")" \ --longoptions "$(printf "%s," "${ARGUMENT_LIST[@]}")" \
--name "$(basename "$0")" \ --name "$(basename "$0")" \
--options "" \ --options "" \