From 20f379d11e8097bcbd1ffcadbfb9b8ff983f2f0d Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Fri, 20 Jan 2023 00:25:21 -0300 Subject: [PATCH] Move bin/portzap-install-port to libexec/portzap/install-port --- bin/portzap | 3 ++- bin/portzap-install-port => libexec/portzap/install-port | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename bin/portzap-install-port => libexec/portzap/install-port (100%) diff --git a/bin/portzap b/bin/portzap index e34a75a..232f1ee 100755 --- a/bin/portzap +++ b/bin/portzap @@ -7,6 +7,7 @@ source_url="https://git.hardenedbsd.org/hardenedbsd/ports.git" transient_dir="/home/_portzap/ports" rest_dir="/usr/ports/" +libexec_dir=$(realpath $(dirname $0)/../libexec/portzap/) ## # Default masks @@ -109,7 +110,7 @@ install() { cd $transient_dir find . -maxdepth 1 -type f -exec install -m $install_mode {} $rest_dir \; find . -maxdepth 1 -type d -exec mkdir -p -m $install_mode $rest_dir/{} \; - find . -depth 2 -type d -exec portzap-install-port {} $rest_dir $install_mode \; + find . -depth 2 -type d -exec $libexec_dir/install-port {} $rest_dir $install_mode \; } case $1 in diff --git a/bin/portzap-install-port b/libexec/portzap/install-port similarity index 100% rename from bin/portzap-install-port rename to libexec/portzap/install-port