mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
newvers.sh: Avoid picking up stray envars.
89f361f742added a mechanism to allow arbitrary overrides from the command line. Unfortunately, it also had the (likely unintended) effect of allowing RELEASE and VERSION to be passed in from the environment, and Makefile.inc1 happens to define VERSION for the benefit of pkgbase. To restore the status quo, unset RELEASE and VERSION at the top of the script. Fixes:89f361f742MFC after: 3 days Reviewed by: gallatin, sjg, emaste Differential Revision: https://reviews.freebsd.org/D41845
This commit is contained in:
parent
70fbcd451b
commit
9f16abf8d3
1 changed files with 2 additions and 0 deletions
|
|
@ -57,6 +57,8 @@ BRANCH="CURRENT"
|
|||
if [ -n "${BRANCH_OVERRIDE}" ]; then
|
||||
BRANCH=${BRANCH_OVERRIDE}
|
||||
fi
|
||||
unset RELEASE
|
||||
unset VERSION
|
||||
|
||||
if [ -z "${SYSDIR}" ]; then
|
||||
SYSDIR=$(dirname $0)/..
|
||||
|
|
|
|||
Loading…
Reference in a new issue