소스 검색

Multi-profile support

bryan 2 년 전
부모
커밋
8ce8ea92fe
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      openwrtbuilder

+ 1 - 3
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}"