Vitaly Chikunov
bf62807e8d
This happens because `a=$(...)` assignment eats last newline, then if we `echo "$a" | wc -l` we miss `0` lines (because there's always 1 empty line) and if we `echo -n "$a" | wc -l` we get `n-1` lines. So just count words instead of lines. Signed-off-by: Vitaly Chikunov <vt@altlinux.org> |
||
---|---|---|
.gear | ||
.editorconfig | ||
Dockerfile | ||
Makefile | ||
remove-old-kernels | ||
update-kernel | ||
update-kernel.spec |