Remove 'wc' spaces on some systems

This commit is contained in:
Héctor Molinero Fernández 2016-12-06 01:25:23 +01:00
commit 312b3dcf74

2
hblock
View file

@ -287,7 +287,7 @@ main() {
blockListDate=$(date -u)
blocklistCount='0'
if [ -n "$blocklist" ]; then
blocklistCount=$(printf -- '%s\n' "$blocklist" | wc -l)
blocklistCount=$(printf -- '%s\n' "$blocklist" | wc -l | tr -d '[:blank:]')
fi
hosts=$(cat <<-EOF