From 295855e0aec7b95db441bea99003673ba1124b54 Mon Sep 17 00:00:00 2001 From: bryan Date: Wed, 11 Jan 2023 14:53:00 -0500 Subject: [PATCH] Multi-profile support --- openwrtbuilder | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/openwrtbuilder b/openwrtbuilder index f251511..c6d77c3 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -612,12 +612,15 @@ main() { debug "Profile: $profile" loadProfiles - [[ ! ${!profile@a} = A ]] && echo "Profile does not exist" && return 1 + + debug "r4s: ${!r4s@}" + declare -gn P_ARR="$profile" + debug debug "P_ARR: ${P_ARR[*]}" - + : "${BUILDDIR:=$SCRIPTDIR}" : "${FILESDIR:=$BUILDDIR/files}"