mirror of
https://github.com/h3pdesign/Neon-Vision-Editor
synced 2026-04-21 13:27:16 +00:00
Fix pre-commit hook compatibility
This commit is contained in:
parent
16d790021c
commit
255b669029
1 changed files with 4 additions and 1 deletions
|
|
@ -8,7 +8,10 @@ if [[ "${NVE_SKIP_BUILD_NUMBER_BUMP:-0}" == "1" ]]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
mapfile -t staged_files < <(git diff --cached --name-only --diff-filter=ACMR)
|
||||
staged_files=()
|
||||
while IFS= read -r path; do
|
||||
staged_files+=("$path")
|
||||
done < <(git diff --cached --name-only --diff-filter=ACMR)
|
||||
if (( ${#staged_files[@]} == 0 )); then
|
||||
exit 0
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue