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
|
# main
|
||||||
|
set -x
|
||||||
umask u=rwX,g=rwX,o=
|
umask u=rwX,g=rwX,o=
|
||||||
cd "${gitdir}"
|
cd "${gitdir}"
|
||||||
|
set +x
|
||||||
run_install "-d" "${installdir}"
|
run_install "-d" "${installdir}"
|
||||||
if [ -e "${revfile}" ]; then
|
if [ -e "${revfile}" ]; then
|
||||||
perform_update
|
perform_update
|
||||||
|
|
|
@ -7,12 +7,13 @@ branch=$2
|
||||||
|
|
||||||
##
|
##
|
||||||
# main
|
# main
|
||||||
|
set -x
|
||||||
umask u=rwX,g=rwX,o=
|
umask u=rwX,g=rwX,o=
|
||||||
if [ -e "${gitdir}/.git" ]; then
|
if [ -e "${gitdir}/.git" ]; then
|
||||||
set -x
|
|
||||||
cd "${gitdir}"
|
cd "${gitdir}"
|
||||||
git pull --rebase origin "${branch}"
|
git pull --rebase origin "${branch}"
|
||||||
else
|
else
|
||||||
|
set +x
|
||||||
echo "[-] ${gitdir} is not a valid git repository."
|
echo "[-] ${gitdir} is not a valid git repository."
|
||||||
echo "[-] Try 'portzap clone'"
|
echo "[-] Try 'portzap clone'"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue