Twenga / twgit

Twgit is a free and open source assisting tools for managing features, hotfixes and releases on Git repositories. It provides simple, high-level commands to adopt the branching model describes in our documentation. Supported OS: Debian/Ubuntu Linux, Mac OS X 10.8 (Mountain Lion) or lower.
http://twgit.twenga.com/
Other
111 stars 34 forks source link

Enhance macos detection when use gnu functions #136

Open monsieurchico opened 10 years ago

monsieurchico commented 10 years ago

On mac os, when you use gnu-sed, gnu-grep, etc.. the tool call theses functions like we were using regular mac os functions. I think we should catch the error when it is the case and try to execute the linux equivalent after. Moreover, macos seems not to like declare -A CUI_COLORS(.

monsieurchico commented 10 years ago

@geoffroy-aubry is it ok if I create a hotfix for this ?

geoffroy-aubry commented 10 years ago

OK for hotfix, but don't close it before an external reviewing :-)

monsieurchico commented 10 years ago

So I decided to base the os compatibility functions on error codes instead of os detection. we saw that on some cases (for instance mac os + gnutls extension) the os detection is not relevant.

geoffroy-aubry commented 10 years ago

Travis CI build failed :-/