Fix shellcheck errors

This commit is contained in:
0x1eef 2024-04-15 16:50:27 -03:00
parent 786c0d86ff
commit 8fd81ac5ae

View file

@ -14,8 +14,8 @@ mode="u=rwX,g=rwX,o="
perform_update()
{
rev=$(cat "${revfile}")
add=$(doas -u _portzap ${libexec}/git-changed-files "${gitdir}" "${rev}")
del=$(doas -u _portzap ${libexec}/git-removed-files "${gitdir}" "${rev}")
add=$(doas -u _portzap "${libexec}"/git-changed-files "${gitdir}" "${rev}")
del=$(doas -u _portzap "${libexec}"/git-removed-files "${gitdir}" "${rev}")
for file in ${del}; do
target="${installdir}/${file}"
parent=$(dirname "${target}")
@ -61,4 +61,4 @@ if [ -e "${revfile}" ]; then
else
perform_install
fi
doas -u _portzap ${libexec}/git-rev "${gitdir}" > "${revfile}"
doas -u _portzap "${libexec}"/git-rev "${gitdir}" > "${revfile}"