wrap set -x|+x around umask
This commit is contained in:
parent
a6c98489a7
commit
35ff31cb4b
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue