Denote function locals with 'local'
This commit is contained in:
parent
d2f900f440
commit
bc0553aabd
2 changed files with 5 additions and 0 deletions
|
@ -18,6 +18,9 @@ revfile=$3
|
||||||
|
|
||||||
perform_update()
|
perform_update()
|
||||||
{
|
{
|
||||||
|
# shellcheck disable=SC3043
|
||||||
|
local rev add del \
|
||||||
|
target parent parents
|
||||||
rev=$(cat "${revfile}")
|
rev=$(cat "${revfile}")
|
||||||
add=$("${libexec}"/utils/git/get-changed-files "${gitdir}" "${rev}")
|
add=$("${libexec}"/utils/git/get-changed-files "${gitdir}" "${rev}")
|
||||||
del=$("${libexec}"/utils/git/get-removed-files "${gitdir}" "${rev}")
|
del=$("${libexec}"/utils/git/get-removed-files "${gitdir}" "${rev}")
|
||||||
|
|
|
@ -15,6 +15,8 @@ installdir=$2
|
||||||
|
|
||||||
erase()
|
erase()
|
||||||
{
|
{
|
||||||
|
# shellcheck disable=SC3043
|
||||||
|
local dir
|
||||||
dir="${1}"
|
dir="${1}"
|
||||||
printf "%s " "${dir}"
|
printf "%s " "${dir}"
|
||||||
find "${dir}" \
|
find "${dir}" \
|
||||||
|
|
Loading…
Reference in a new issue