Skip to content

Commit

Permalink
Merge pull request #5 from rasodu/detect-full-git-url
Browse files Browse the repository at this point in the history
Look for @ sing in the repository name.
  • Loading branch information
wei authored Apr 16, 2020
2 parents c388e4c + 21a1c0b commit aae584d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ then
SOURCE_REPO="https://github.com/${SOURCE_REPO}.git"
fi
fi
if ! echo $DESTINATION_REPO | grep '.git'
if ! echo $DESTINATION_REPO | grep -E '.git|@'
then
if [[ -n "$SSH_PRIVATE_KEY" ]]
then
Expand Down

0 comments on commit aae584d

Please sign in to comment.