From 4447ccdd56f2db65e888de689f7b2f3701257562 Mon Sep 17 00:00:00 2001 From: bryan Date: Wed, 11 Jan 2023 14:59:47 -0500 Subject: [PATCH] Multi-profile support --- openwrtbuilder | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/openwrtbuilder b/openwrtbuilder index 6bb1031..092aac6 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -611,11 +611,9 @@ main() { debug "Profile: $profile" - [[ ! ${!profile@a} = A ]] && echo "Profile does not exist" && return 1 + #[[ ! ${!profile@a} = A ]] && echo "Profile does not exist" && return 1 - debug "r4s: ${r4s[*]}" - - declare -gn P_ARR="${PROFILES[$profile}" + declare -gn P_ARR="$profile" debug "P_ARR: ${P_ARR[*]}"