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

This commit is contained in:
Noah Gorny
2021-04-22 20:53:23 +03:00
parent d0aa9cb542
commit e15b53ea61

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