hooks: Use compat31 in check-clean-files-txt.sh

pull/1873/head
Noah Gorny 2021-04-22 20:53:23 +03:00
parent d0aa9cb542
commit e15b53ea61
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,9 @@ function compare_lines() {
done <<< "$1"
}
# We compare using the legacy way
shopt -s compat31
# Test root files
compare_lines "$(grep -v "/" "$file")"
@ -31,5 +34,6 @@ compare_lines "$(grep "/$" "$file")"
# Test non root directories
compare_lines "$(grep "/." "$file")"
shopt -u compat31
# Yay, all good!
exit 0