From e876247ccd0493a32b62a97c0e25445ed49ad6dd Mon Sep 17 00:00:00 2001 From: bryan Date: Wed, 11 Jan 2023 14:47:31 -0500 Subject: [PATCH] Multi-profile support --- openwrtbuilder | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openwrtbuilder b/openwrtbuilder index 87682a1..f251511 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -610,9 +610,13 @@ 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