summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pbj7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/pbj b/bin/pbj
index 0ca06f8..d232acc 100755
--- a/bin/pbj
+++ b/bin/pbj
@@ -21,7 +21,12 @@ if [ ! -d "$bindir" ] ; then
fi
PATH="$PATH:$bindir"
-pkgroot="$(pwd)/pkg"
+if [ -n "$PKGROOT" ] ; then
+ pkgroot="$PKGROOT"
+else
+ pkgroot="$(pwd)/pkg"
+fi
+
if [ ! -d "$pkgroot" ] ; then
die "$pkgroot does not exist"
fi