Skip to content

Commit

Permalink
Merge pull request #2286 from harvesthq/allow-detached-head
Browse files Browse the repository at this point in the history
[Travis] Allow detached head when parsing master ref.
  • Loading branch information
pfiller committed Mar 28, 2015
2 parents cb6b033 + 6c993b1 commit 7eafb45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bower-publish.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
CURRENT_BRANCH=`git name-rev --name-only HEAD`

if [ $CURRENT_BRANCH != 'master' ] ; then
echo "Build not on master. Skipped bower-chosen release"
Expand Down

0 comments on commit 7eafb45

Please # to comment.