From 8ce8ea92fe726f76d852793aabb8e30913476418 Mon Sep 17 00:00:00 2001 From: bryan Date: Wed, 11 Jan 2023 14:57:04 -0500 Subject: [PATCH] Multi-profile support --- openwrtbuilder | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openwrtbuilder b/openwrtbuilder index 639aae7..6bb1031 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -610,15 +610,13 @@ main() { for profile in "${PROFILES[@]}"; do debug "Profile: $profile" - loadProfiles [[ ! ${!profile@a} = A ]] && echo "Profile does not exist" && return 1 debug "r4s: ${r4s[*]}" - declare -gn P_ARR="$profile" + declare -gn P_ARR="${PROFILES[$profile}" - debug debug "P_ARR: ${P_ARR[*]}" : "${BUILDDIR:=$SCRIPTDIR}"