Fix setting RELENGDIR when release.sh is called from an external
script. Sponsored by: Rubicon Communications, LLC (netgate.com)
This commit is contained in:
parent
9e4c35f867
commit
5fb8eca870
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user