Add empty IFS for single var reads

This commit is contained in:
Lucas Gabriel Vuotto 2024-02-05 16:06:50 +00:00
parent 134c479e36
commit 49d068aad3
6 changed files with 7 additions and 7 deletions

View file

@ -64,7 +64,7 @@ zonefile_regex=$(git config --default '\.zone$' hooks.zonefileregex)
needs_serial_bump=$(git diff-index --name-only --cached "$against" |
grep -E -- "$zonefile_regex" | {
rc=0
while read -r filename; do
while IFS= read -r filename; do
old=$(get_serial "$against:$filename")
new=$(get_serial ":$filename")
if bc_cmp "$new" "<=" "$old"; then