mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
"wc -l" on some platforms (e.g. FreeBSD) contains leading spaces and stops "$num from being a number. Create a more portable solution and put it in a function instead of repeating the logic. Signed-off-by: Martin Schwenke <martin@meltin.net>