Parcourir la source

build: make PKG_VSN pre-set for upgrade base download

Zaiming (Stone) Shi il y a 3 ans
Parent
commit
34df802f5e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      pkg-vsn.sh

+ 1 - 1
pkg-vsn.sh

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