]> arthur.barton.de Git - bup.git/commit
On MacOS X, "wc -l" returns extra whitespace.
authorAvery Pennarun <apenwarr@gmail.com>
Thu, 7 Jan 2010 23:16:52 +0000 (18:16 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Thu, 7 Jan 2010 23:16:52 +0000 (18:16 -0500)
commit3198fba54521cd7f313a02d237f9198dd58f6a90
treeddb5a546e562754cd299135487941ab2712835d7
parentb51c91f45e2ec53a3836e52be56ff0f90da9b23d
On MacOS X, "wc -l" returns extra whitespace.

ie. "    0" instead of "0".

The easiest workaround is to compare as a number instead of as a string.
This seems to work correctly on both MacOS and Linux.
test-sh