Merge pull request #6638 from certbot/mawkish

Compatibility with more traditional versions of awk
This commit is contained in:
schoen
2019-01-03 18:14:03 -08:00
committed by GitHub
+1 -1
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