瀏覽代碼

Multi-profile support

bryan 2 年之前
父節點
當前提交
e876247ccd
共有 1 個文件被更改,包括 4 次插入2 次删除
  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