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
}
default() {
ARCH=x64
RELEASE_TYPE=retail
@ -140,7 +139,7 @@ ROOT_SOL_MAP=(
ARR_TO_STR() {
local arr=("$@")
local joined
printf -v joined "%s, " "${arr[@]}";
printf -v joined "%s, " "${arr[@]}"
echo "${joined%, }"
}
usage() {
@ -212,7 +211,8 @@ ARGUMENT_LIST=(
default
opts=$(getopt \
opts=$(
getopt \
--longoptions "$(printf "%s," "${ARGUMENT_LIST[@]}")" \
--name "$(basename "$0")" \
--options "" \