Multi-profile support

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

View File

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