Multi-profile support

This commit is contained in:
2023-01-11 14:47:31 -05:00
parent b381222022
commit e876247ccd

View File

@@ -610,9 +610,13 @@ main() {
for profile in "${PROFILES[@]}"; do for profile in "${PROFILES[@]}"; do
debug "Profile: $profile" debug "Profile: $profile"
loadProfiles
[[ ! ${!profile@a} = A ]] && echo "Profile does not exist" && return 1 [[ ! ${!profile@a} = A ]] && echo "Profile does not exist" && return 1
declare -gn P_ARR="$profile" declare -gn P_ARR="$profile"
debug "P_ARR: ${P_ARR[*]}"
: "${BUILDDIR:=$SCRIPTDIR}" : "${BUILDDIR:=$SCRIPTDIR}"
: "${FILESDIR:=$BUILDDIR/files}" : "${FILESDIR:=$BUILDDIR/files}"
@@ -646,8 +650,6 @@ main() {
# Experimental # Experimental
(( FROM_SOURCE )) && fromSource (( FROM_SOURCE )) && fromSource
debug "P_ARR: ${P_ARR[*]}"
debug && exit debug && exit
getImageBuilder getImageBuilder