1 2 3 4 5 6 7
check-git-repository() { if [[ ! $(is-git-dir "$1") ]] then red "Not a git repository." exit 2 fi }