From 35ff31cb4b0fe2958b29bddf680632a0d3d8eff0 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Wed, 17 Apr 2024 18:13:03 -0300 Subject: [PATCH] wrap set -x|+x around umask --- libexec/portzap/portzap-install | 2 ++ libexec/portzap/portzap-pull | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libexec/portzap/portzap-install b/libexec/portzap/portzap-install index 4c24526..ccf1190 100755 --- a/libexec/portzap/portzap-install +++ b/libexec/portzap/portzap-install @@ -53,8 +53,10 @@ run_install() ## # main +set -x umask u=rwX,g=rwX,o= cd "${gitdir}" +set +x run_install "-d" "${installdir}" if [ -e "${revfile}" ]; then perform_update diff --git a/libexec/portzap/portzap-pull b/libexec/portzap/portzap-pull index 21350cc..d676ad2 100755 --- a/libexec/portzap/portzap-pull +++ b/libexec/portzap/portzap-pull @@ -7,12 +7,13 @@ branch=$2 ## # main +set -x umask u=rwX,g=rwX,o= if [ -e "${gitdir}/.git" ]; then - set -x cd "${gitdir}" git pull --rebase origin "${branch}" else + set +x echo "[-] ${gitdir} is not a valid git repository." echo "[-] Try 'portzap clone'" exit 1