wrap set -x|+x around umask

This commit is contained in:
0x1eef 2024-04-17 18:13:03 -03:00
parent a6c98489a7
commit 35ff31cb4b
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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