diff --git a/src/get_command.sh b/src/get_command.sh index 5f8f95e..b866c7e 100755 --- a/src/get_command.sh +++ b/src/get_command.sh @@ -95,18 +95,20 @@ esac +local cloned="false" # we check if we have cloned the repo via the if the .git folder exists if [[ ! -d .git ]]; then # check if the remote actually exists $git ls-remote $repo_url > /dev/null && RC=$? || RC=$? if [[ $RC == 0 ]]; then $git clone $repo_url $target_dir >&2 + cloned="true" else echo "Could not find repo: $repo_url" exit 1 fi fi -echo dir=$target_dir domain=$domain path=$path repo_url=$repo_url +echo dir=$target_dir domain=$domain path=$path repo_url=$repo_url cloned=$cloned exit 0