Ver Fonte

Multi-profile support

bryan há 2 anos atrás
pai
commit
3ee0afda05
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      openwrtbuilder

+ 1 - 1
openwrtbuilder

@@ -621,7 +621,7 @@ main() {
         : "${BUILDDIR:=$SCRIPTDIR}"
         : "${FILESDIR:=$BUILDDIR/files}"
 
-        : "${P_ARR[release]:=$USER_RELEASE:=$RELEASE}" # precedence: profile>user input>env>hardcode
+        : "${P_ARR[release]:=${USER_RELEASE:-$RELEASE}}" # precedence: profile>user input>env>hardcode
         : "${P_ARR[source_archive]:=$BUILDDIR/sources/${P_ARR[profile]}-${P_ARR[release]}.tar.xz}"
         : "${P_ARR[source_dir]:=${P_ARR[source_archive]%.tar.xz}}"
         : "${P_ARR[out_bin_dir]:=$BUILDDIR/bin/${P_ARR[profile]}-${P_ARR[release]}}"