kazazor / git-pre-commit

A pre-commit hook that ignores all the unstagged changes while performing the pre-commit command you wrote (Using Shell, Gulp, Grunt etc..)
https://www.npmjs.com/package/git-pre-commit
MIT License
18 stars 5 forks source link

Make pre-commit script running on Ubuntu bash #39

Closed tobiasweibel closed 6 years ago

tobiasweibel commented 6 years ago

== doesn't seem a valid operation in Ubuntu's bash.

Fixes #36

tobiasweibel commented 6 years ago

Tested on Ubuntu, Windows (with SourceTree and mingw64 bash). From #36 I read that it seems to work on Mac OS as well.