mirror of
https://github.com/hectorm/hblock.git
synced 2026-04-22 15:06:38 +05:30
Remove 'wc' spaces on some systems
This commit is contained in:
parent
996a80ed83
commit
312b3dcf74
1 changed files with 1 additions and 1 deletions
2
hblock
2
hblock
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue