Skip to content

Commit

Permalink
Move git config stuff before all git commands
Browse files Browse the repository at this point in the history
<insert funny "SO OBVIOUS" gif here>
  • Loading branch information
pfiller committed Mar 28, 2015
1 parent ddcdfd2 commit 7d206e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bower-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ if [ $CURRENT_BRANCH != 'master' ] ; then
exit 0
fi

git config --global user.email "notmyemail@bower-chosen.lol"
git config --global user.name "bower-chosen"

git clone https://pfiller:${GH_TOKEN}@github.com/harvesthq/bower-chosen.git
rm -rf bower-chosen/*
cp public/bower.json public/*.png public/chosen.jquery.min.js public/chosen.min.css bower-chosen/
cd bower-chosen


LATEST_VERSION=$(git diff bower.json | grep version | cut -d':' -f2 | cut -d'"' -f2 | tail -1)

if [ -z $LATEST_VERSION ] ; then
Expand All @@ -22,8 +24,6 @@ else
git tag -a "v${LATEST_VERSION}" -m "Version ${LATEST_VERSION}"
fi

git config --global user.email "notmyemail@bower-chosen.lol"
git config --global user.name "bower-chosen"
git remote set-url origin https://pfiller:${GH_TOKEN}@github.com/harvesthq/bower-chosen.git

git add -A
Expand Down

0 comments on commit 7d206e6

Please sign in to comment.