Update sourcezap-{clone,pull}
Some checks are pending
sourcezap / shellcheck (push) Waiting to run

Reduce the visual noise generated by set -x
This commit is contained in:
0x1eef 2024-07-19 02:44:03 -03:00
parent d33cd6628f
commit d5770bc731
2 changed files with 0 additions and 4 deletions

View file

@ -43,10 +43,8 @@ if [ -e "${gitdir}/.git" ]; then
exit 1
fi
set -x
git clone "${giturl}" "${gitdir}"
cd "${gitdir}"
git config core.filemode off
git checkout -t origin/"${branch}"
set +x
printok "clone complete"

View file

@ -42,9 +42,7 @@ if [ ! -e "${gitdir}/.git" ]; then
exit 1
fi
set -x
cd "${gitdir}"
branch=$(git branch --show-current)
git pull --rebase origin "${branch}"
set +x
printok "pull complete"