Browse Source

Multi-profile support

bryan 2 years ago
parent
commit
e876247ccd
1 changed files with 4 additions and 2 deletions
  1. 4 2
      openwrtbuilder

+ 4 - 2
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