fix(hooks): incorrect skipped output in mixed exec/non-exec batches

The `found` variable is incorrectly decremented for non-executable scripts, which leads to misleading output when a hook folder contains an executable + a non-executable script (output will indicate the folder was fully scripted).

Signed-off-by: Josh <josh.t.richards@gmail.com>
pull/2551/head
Josh 3 months ago committed by GitHub
parent 725e8f2f11
commit e096ef691a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -36,7 +36,6 @@ run_path() {
while read -r script_file_path; do
if ! [ -x "${script_file_path}" ]; then
echo "==> The script \"${script_file_path}\" was skipped, because it lacks the executable flag"
found=$((found-1))
continue
fi

Loading…
Cancel
Save