Remove "set -x"

This commit is contained in:
0x1eef 2024-07-21 21:04:44 -03:00
parent 640f2b53d6
commit ec0fa2f93e
6 changed files with 11 additions and 18 deletions

View file

@ -40,10 +40,8 @@ if [ ! -e "${gitdir}/.git" ]; then
exit 1
fi
set -x
cd "${gitdir}"
gitexec "fetch origin"
gitexec "checkout ${branch}" ||
gitexec "checkout -t origin/${branch}"
set +x
printok "${branch} checked out"

View file

@ -11,7 +11,7 @@ branch=$3
##
# functions
gitexec()
git()
{
"${libexec}"/utils/gitexec "${1}"
}
@ -41,11 +41,8 @@ if [ -e "${gitdir}/.git" ]; then
exit 1
fi
set -x
gitexec "clone ${giturl} ${gitdir}"
git clone "${giturl}" "${gitdir}"
cd "${gitdir}"
gitexec "config core.filemode off"
set +x
set +e
gitexec "checkout -t origin/${branch} > /dev/null 2>&1"
git config core.filemode off
git checkout -t origin/"${branch}"
printok "clone complete"

View file

@ -49,8 +49,7 @@ perform_install()
! -name ".hooks" \
! -name ".arcconfig" \
-exec cp -Rpv {} "${installdir}" \;
set -x
chown -R root "${installdir}"
chown -Rv root "${installdir}"
}
run_install()
@ -73,10 +72,8 @@ if [ "$(id -u)" != "0" ]; then
exit 1
fi
set -x
umask ${mode}
cd "${gitdir}"
set +x
run_install "-d" "${installdir}"
chmod ${mode} "${installdir}"
if [ -e "${revfile}" ]; then
@ -85,5 +82,4 @@ else
perform_install
fi
"${libexec}"/utils/git-rev "${gitdir}" > "${revfile}"
set +x
printok "install complete"

View file

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

4
share/portzap/RELNOTES Normal file
View file

@ -0,0 +1,4 @@
v?.?.?
| Remove "set -x"
After this change, portzap emits less output