From 3254db4e32356c93da05cfe4a01b47a34b9197af Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Thu, 23 May 2024 01:03:45 -0300 Subject: [PATCH] Update bin/portzap --- bin/portzap | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/portzap b/bin/portzap index f04f74a..f4ae801 100755 --- a/bin/portzap +++ b/bin/portzap @@ -3,13 +3,13 @@ set -e ## # variables -localbase="${LOCALBASE:-/usr/local}" -defaultbranch="hardenedbsd/main" +localbase=${LOCALBASE:-$(realpath "$(dirname "$0")"/..)} +libexec="${localbase}"/libexec/portzap gitdir="/home/_portzap/ports" giturl="${PORTZAP_GITURL:-https://git.hardenedbsd.org/hardenedbsd/ports.git}" installdir="${PORTZAP_INSTALLDIR:-/usr/ports}" +defaultbranch="hardenedbsd/main" revfile="${installdir}"/.portzap -libexec=$(realpath "$(dirname "$0")")/../libexec/portzap ## # functions