refactor: multi-line things in bash are bonkers

This commit is contained in:
Pat Cavit 2017-01-13 20:46:23 -08:00
parent 8e72929f00
commit 59dfbf0afc

View file

@ -26,8 +26,8 @@ after_success:
- |
# Only want to commit when building a push on whatever $BRANCH is
if [ "$TRAVIS_EVENT_TYPE" == "push" ] &&
[ "$TRAVIS_BRANCH" == "$BRANCH" ] &&
if [ "$TRAVIS_EVENT_TYPE" == "push" ] && \
[ "$TRAVIS_BRANCH" == "$BRANCH" ] && \
[ "$TRAVIS_REPO_SLUG" == "$REPO" ]; then
# Set up SSH environment
$(npm bin)/set-up-ssh --key "$encrypted_8b86e0359d64_key" \
@ -35,7 +35,7 @@ after_success:
--path-encrypted-key "./.deploy.enc"
# Commit changes (if there were any) from running build earlier
$(npm bin)/commit-changes --commands "echo committing"
$(npm bin)/commit-changes --commands "echo committing" \
--commit-message "Bundled output for commit $TRAVIS_COMMIT [skip ci]" \
--branch "$BRANCH"
else