s|revision|revfile|g

This commit is contained in:
0x1eef 2024-05-23 00:02:52 -03:00
parent 2de42be1ce
commit c4917b5c29

View file

@ -8,7 +8,7 @@ defaultbranch="hardenedbsd/main"
gitdir="/home/_portzap/ports" gitdir="/home/_portzap/ports"
giturl="${PORTZAP_GITURL:-https://git.hardenedbsd.org/hardenedbsd/ports.git}" giturl="${PORTZAP_GITURL:-https://git.hardenedbsd.org/hardenedbsd/ports.git}"
installdir="${PORTZAP_INSTALLDIR:-/usr/ports}" installdir="${PORTZAP_INSTALLDIR:-/usr/ports}"
revision="${installdir}"/.portzap revfile="${installdir}"/.portzap
libexec=$(realpath "$(dirname "$0")")/../libexec/portzap libexec=$(realpath "$(dirname "$0")")/../libexec/portzap
## ##
@ -59,7 +59,7 @@ case $1 in
;; ;;
"install") "install")
require_dependency "git doas" require_dependency "git doas"
"${libexec}"/commands/portzap-install "${gitdir}" "${installdir}" "${revision}" "${libexec}"/commands/portzap-install "${gitdir}" "${installdir}" "${revfile}"
;; ;;
*) *)
printf "Usage: portzap COMMAND [OPTIONS]\n" printf "Usage: portzap COMMAND [OPTIONS]\n"