Permalink
Browse files

gitPullOrClone - minor logic change / remove regexp

  • Loading branch information...
joolswills committed Oct 11, 2017
1 parent fe36b61 commit aa5bf1bad109d470438e8f59c9a3bb9ca10b73a0
Showing with 2 additions and 2 deletions.
  1. +2 −2 scriptmodules/helpers.sh
View
@@ -345,8 +345,8 @@ function gitPullOrClone() {
popd > /dev/null
else
local git="git clone --recursive"
if [[ "$__persistent_repos" -ne 1 ]]; then
[[ "$repo" =~ github ]] && git+=" --depth 1"
if [[ "$__persistent_repos" -ne 1 && "$repo" == *github* ]]; then
git+=" --depth 1"
fi
[[ "$branch" != "master" ]] && git+=" --branch $branch"
echo "$git \"$repo\" \"$dir\""

0 comments on commit aa5bf1b

Please sign in to comment.