Explorar o código

build: make PKG_VSN pre-set for upgrade base download

Zaiming (Stone) Shi %!s(int64=3) %!d(string=hai) anos
pai
achega
34df802f5e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pkg-vsn.sh

+ 1 - 1
pkg-vsn.sh

@@ -99,7 +99,7 @@ else
     SUFFIX="-$(git rev-parse HEAD | cut -b1-8)"
     SUFFIX="-$(git rev-parse HEAD | cut -b1-8)"
 fi
 fi
 
 
-PKG_VSN="${RELEASE}${SUFFIX}"
+PKG_VSN="${PKG_VSN:-${RELEASE}${SUFFIX}}"
 
 
 if [ "${LONG_VERSION:-}" != 'yes' ]; then
 if [ "${LONG_VERSION:-}" != 'yes' ]; then
     echo "$PKG_VSN"
     echo "$PKG_VSN"