Skip to content

Commit

Permalink
Fix error when adding blessed remote twice
Browse files Browse the repository at this point in the history
  • Loading branch information
hbenali committed Oct 24, 2020
1 parent 51e1e94 commit a0a87e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _functions_git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ clone_or_fetch_git_repo() {
git ls-remote --exit-code blessed > /dev/null 2>&1
status=$?
set -e
if [ ${status} -ne 0 ]; then
if [ ${status} -ne 0 ] && [[ ! "$(git remote | xargs)" =~ "blessed" ]]; then
echo_info "Add blessed remote for exoplatform organization..."
git remote add blessed [email protected]:exoplatform/${_repo}.git
fi
Expand Down

0 comments on commit a0a87e5

Please sign in to comment.