Compatibility with more traditional versions of awk

This commit is contained in:
Seth Schoen 2019-01-03 17:48:09 -08:00
parent ec297ccf72
commit 59bbda51ab

View file

@ -174,7 +174,7 @@ CheckRenewHook() {
TotalAndDistinctLines() {
total=$1
distinct=$2
awk '{a[$1] = 1}; END {exit(NR !='$total' || length(a) !='$distinct')}'
awk '{a[$1] = 1}; END {n = 0; for (i in a) { n++ }; exit(NR !='$total' || n !='$distinct')}'
}
# Cleanup coverage data