Skip to content

Commit

Permalink
Fix publish script for Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
cyChop committed Jan 2, 2018
1 parent 6059e57 commit 2ab8eb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ echo "*** Prepare environment ***"

# Initialize the environment
REPO_SLUG=${TRAVIS_REPO_SLUG:-beverages-js}
if [ -s "${TRAVIS}" ]; then
if [ ${TRAVIS} ]; then
REPO_URL=https://cyChop:$GITHUB_API_KEY@github.com/${REPO_SLUG}.git
else
[email protected]:cyChop/beverages-js.git
Expand Down Expand Up @@ -36,7 +36,7 @@ rm -rf tmp
# Commit and push changes
echo "*** Commit and push changes ***"
git add --all
if [ -s "${TRAVIS}" ]; then
if [ ${TRAVIS} ]; then
echo "This is a travis build"
git -c user.name='Travis CI' -c user.email='travis' commit -m "Travis build $TRAVIS_BUILD_NUMBER"
else
Expand Down

0 comments on commit 2ab8eb3

Please sign in to comment.