From 318b89329934ca3ffc545cfdf4a70b60ba40786c Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Fri, 19 Apr 2024 23:40:03 -0300 Subject: [PATCH] Assign ${mode} in portzap-install --- libexec/portzap/portzap-install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libexec/portzap/portzap-install b/libexec/portzap/portzap-install index c6a0845..b8da101 100755 --- a/libexec/portzap/portzap-install +++ b/libexec/portzap/portzap-install @@ -6,6 +6,7 @@ gitdir=$1 installdir=$2 revfile=$3 libexec=$(dirname "$0") +mode="u=rwX,g=rwX,o=" ## # functions @@ -63,7 +64,7 @@ if [ "$(id -u)" != "0" ]; then fi set -x -umask u=rwX,g=rwX,o= +umask "${mode}" cd "${gitdir}" set +x run_install "-d" "${installdir}"