Parcourir la source

Multi-profile support

bryan il y a 2 ans
Parent
commit
4447ccdd56
1 fichiers modifiés avec 2 ajouts et 4 suppressions
  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[*]}"