Multi-profile support
This commit is contained in:
@@ -610,10 +610,14 @@ 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
|
||||||
|
|||||||
Reference in New Issue
Block a user