Skip to content

Commit

Permalink
lowercase $org and $repo
Browse files Browse the repository at this point in the history
Fix dos %repo% in echo string
Force bower to install to components folder
  • Loading branch information
dfreedm committed Apr 10, 2014
1 parent a787dbb commit 92df43c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bin/gp.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
#!/bin/bash -e

# usage gp Polymer core-item
ORG=$1
REPO=$2
org=$1
repo=$2

# make folder (same as input, no checking!)
mkdir $repo
Expand All @@ -16,13 +16,13 @@ git checkout --orphan gh-pages
git rm -rf -q .

# use bower to install runtime deployment
bower install $org/$repo#master
bower install --config.directory="components" $org/$repo#master

# redirect by default to the component folder
echo '^<META http-equiv="refresh" content="0;URL=components/%repo%/"^>' >index.html
echo "<META http-equiv="refresh" content=\"0;URL=components/$repo/\">" >index.html

# send it all to github
git add -a .
git add -A .
git commit -am 'seed gh-pages'
git push -u origin gh-pages --force

Expand Down

0 comments on commit 92df43c

Please sign in to comment.