KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to do something like: if [[ git status &> /dev/null ]]; then echo "is a git repo"; else echo "is not a git repo"; fi except I don't know how to check the exit status. How do I fix this?
Tags (comma-separated)
Save Edits
Cancel