Denote function locals with 'local'

This commit is contained in:
0x1eef 2024-08-18 20:27:16 -03:00
parent d2f900f440
commit bc0553aabd
2 changed files with 5 additions and 0 deletions

View file

@ -18,6 +18,9 @@ revfile=$3
perform_update()
{
# shellcheck disable=SC3043
local rev add del \
target parent parents
rev=$(cat "${revfile}")
add=$("${libexec}"/utils/git/get-changed-files "${gitdir}" "${rev}")
del=$("${libexec}"/utils/git/get-removed-files "${gitdir}" "${rev}")

View file

@ -15,6 +15,8 @@ installdir=$2
erase()
{
# shellcheck disable=SC3043
local dir
dir="${1}"
printf "%s " "${dir}"
find "${dir}" \