Permalink
Browse files

Refactor bower install step to use HTTPS/SSH as appropriate

  • Loading branch information...
1 parent 662f9bb commit 8d7e074682984ceadaf76f0db3f61003551024be @jshcrowthe jshcrowthe committed Mar 17, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 gh/templates/gp.sh
View
@@ -42,7 +42,8 @@ echo "{
}
" > .bowerrc
bower install
-bower install git@$hostname:$org/$repo#$branch
+[ "$connectionType" = "https" ] && { bowerUrl=https://$hostname/$org/$repo.git#$branch; true; } || bowerUrl=git@$hostname:$org/$repo#$branch;
+bower install $bowerUrl
git checkout ${branch} -- demo
rm bower.json .bowerrc
rm -rf components/$repo/demo

0 comments on commit 8d7e074

Please sign in to comment.