different mechanism of determining we are a git repo
#!/bin/bash
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-
print_help() {
echo "Usage Examples:"
echo " ./scope_env.sh run <cmd and args> (executes cmd with scope library)"
@@ -197,8 +195,7 @@ install_git() {
}
clone_scope() {
- cd ${DIR}
- if git remote -v 2>/dev/null | grep "scope.git" &>/dev/null; then
+ if [ -d .git ]; then
echo "We're in an existing repo now. No need to clone."
return 0
fi
