Explorar o código

Multi-profile support

bryan %!s(int64=2) %!d(string=hai) anos
pai
achega
4447ccdd56
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  1. 2 4
      openwrtbuilder

+ 2 - 4
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[*]}"