refactor: multi-line things in bash are bonkers
This commit is contained in:
parent
8e72929f00
commit
59dfbf0afc
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue