浏览代码

Multi-profile support

bryan 2 年之前
父节点
当前提交
4447ccdd56
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      openwrtbuilder

+ 2 - 4
openwrtbuilder

@@ -611,11 +611,9 @@ main() {
 
 
         debug "Profile: $profile"
         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[*]}"
         debug "P_ARR: ${P_ARR[*]}"