cmaitchison/git_diet — pull request #5 by mckenfra (2013-12-02 03:03:21+00:00)
Title: Fix empty repo check for Mac OS X

The code that checks if the repo is empty is not interpreted correctly by Mac OS X bash. $n_packs is left-padded with spaces so incorrectly passes the '== 0' check, and the construct '[test] || (do something then exit)' does not exit the script.

OS X version 10.9 Mavericks
GNU bash, version 3.2.51(1)-release