fabacab / git-archive-all.sh

A bash shell script wrapper for git-archive that archives a git superproject and its submodules, if it has any.
214 stars 86 forks source link

gnutar not installed by default on Mac OS X, and when it is, it's "gtar" #11

Closed CharlesB2 closed 9 years ago

CharlesB2 commented 10 years ago

Maybe a more friendly message could be helpful, or something in the docs, to tell Mac users to run brew install gnu-tar.

I don't know the history of line 107 ([[ $(uname) == "Darwin" ]] && TARCMD=gnutar) (maybe macports?), but when it is installed, it is linked as gtar

fabacab commented 9 years ago

History for this line is in 9c3dbd639d642a699a5621c676616c6af99eab63. Apparently Mac OS X used to ship with gnutar installed by default but no longer does. This should probably be fixed to explicitly test for support of the --concatenate option and complain if it's not available, rather than trying to do operating system detection and assuming the correct kind of tar is installed.