diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-07-01 20:08:26 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-07-01 20:08:26 +0000 |
commit | 65dcc9c12773badea566adf8cfccd1f57d198b05 (patch) | |
tree | 547865d24c61eef4ed9006ed0a91e025c11beda8 /Mk/Scripts/check-stagedir.sh | |
parent | d1a57d31030f49051e58fed7bacdb017e2867a0a (diff) | |
download | ports-65dcc9c12773badea566adf8cfccd1f57d198b05.tar.gz ports-65dcc9c12773badea566adf8cfccd1f57d198b05.zip |
Notes
Diffstat (limited to 'Mk/Scripts/check-stagedir.sh')
-rw-r--r-- | Mk/Scripts/check-stagedir.sh | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/Mk/Scripts/check-stagedir.sh b/Mk/Scripts/check-stagedir.sh index 289e295bf59e..c1a5baf88f43 100644 --- a/Mk/Scripts/check-stagedir.sh +++ b/Mk/Scripts/check-stagedir.sh @@ -224,20 +224,8 @@ case "$1" in esac # validate environment -envfault= -for i in STAGEDIR PREFIX LOCALBASE WRKDIR WRKSRC MTREE_FILE \ - TMPPLIST PLIST_SUB_SED SCRIPTSDIR \ - PORT_OPTIONS NO_PREFIX_RMDIR -do - if ! ( eval ": \${${i}?}" ) 2>/dev/null ; then - envfault="${envfault}${envfault:+" "}${i}" - fi -done -if [ -n "$envfault" ] ; then - echo "Environment variables $envfault undefined. Aborting." \ - | fmt >&2 - exit 1 -fi +validate_env STAGEDIR PREFIX LOCALBASE WRKDIR WRKSRC MTREE_FILE \ + TMPPLIST PLIST_SUB_SED SCRIPTSDIR PORT_OPTIONS NO_PREFIX_RMDIR set -u |