Fix setting RELENGDIR when release.sh is called from an external

script.

Sponsored by:	Rubicon Communications, LLC (netgate.com)
This commit is contained in:
Glen Barber 2020-09-14 15:58:10 +00:00
parent 9e4c35f867
commit 5fb8eca870
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365725

View file

@ -57,7 +57,9 @@ usage() {
env_setup() {
# The directory within which the release will be built.
CHROOTDIR="/scratch"
RELENGDIR="$(dirname $(realpath ${0}))"
if [ -z "${RELENGDIR}" ]; then
export RELENGDIR="$(dirname $(realpath ${0}))"
fi
# The default version control system command to obtain the sources.
for _dir in /usr/bin /usr/local/bin; do