Last active
August 10, 2016 10:45
-
-
Save alecthegeek/129971 to your computer and use it in GitHub Desktop.
Are we in a git repo?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if b=`git rev-parse --git-dir 2>/dev/null`; then | |
echo git here at $b | |
else | |
echo no git | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment