From c4917b5c291c58a8c25deec44eb298cef257848f Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Thu, 23 May 2024 00:02:52 -0300 Subject: [PATCH] s|revision|revfile|g --- bin/portzap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/portzap b/bin/portzap index 888ed89..186126c 100755 --- a/bin/portzap +++ b/bin/portzap @@ -8,7 +8,7 @@ defaultbranch="hardenedbsd/main" gitdir="/home/_portzap/ports" giturl="${PORTZAP_GITURL:-https://git.hardenedbsd.org/hardenedbsd/ports.git}" installdir="${PORTZAP_INSTALLDIR:-/usr/ports}" -revision="${installdir}"/.portzap +revfile="${installdir}"/.portzap libexec=$(realpath "$(dirname "$0")")/../libexec/portzap ## @@ -59,7 +59,7 @@ case $1 in ;; "install") require_dependency "git doas" - "${libexec}"/commands/portzap-install "${gitdir}" "${installdir}" "${revision}" + "${libexec}"/commands/portzap-install "${gitdir}" "${installdir}" "${revfile}" ;; *) printf "Usage: portzap COMMAND [OPTIONS]\n"