SyntaxFix
Write A Post
Hire A Developer
Questions
# check if git repo
if [ $(git rev-parse --is-inside-work-tree) = true ]; then echo "yes, is a git repo" git pull else echo "no, is not a git repo" git clone url --depth 1 fi