summaryrefslogtreecommitdiff
path: root/bin/pkgimg.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pkgimg.sh')
-rwxr-xr-xbin/pkgimg.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/pkgimg.sh b/bin/pkgimg.sh
index fdece5a..94cca5c 100755
--- a/bin/pkgimg.sh
+++ b/bin/pkgimg.sh
@@ -30,12 +30,15 @@ export PORTSDIR=${PORTSDIR:-${BASEDIR}/ports}
function main {
local manifest=${1:-}
+ local installbase=''
+
if [[ -z ${manifest} ]]; then
lerror "Please provide a port manifest."
return 1
fi
- local installbase=''
+ # Convert portsdir to absolute path
+ PORTSDIR="$(cd ${PORTSDIR} && pwd)"
installbase=$(mktemp -d /tmp/pkgimg-install.XXXX)

Generated by cgit