travis/transifex: use HEREDOC for initializing config (#5109)

It seems that in recent bash update in CI doesn't correctly interpret the quote string any more.
This commit is contained in:
Weiyi Wang 2020-02-29 13:52:34 -05:00 committed by GitHub
parent 6d3d9f7a8a
commit 2c0bd0f2a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,13 @@
#!/bin/bash -e
# Setup RC file for tx
echo $'[https://www.transifex.com]\nhostname = https://www.transifex.com\nusername = api\npassword = '"$TRANSIFEX_API_TOKEN"$'\n' > ~/.transifexrc
cat << EOF > ~/.transifexrc
[https://www.transifex.com]
hostname = https://www.transifex.com
username = api
password = $TRANSIFEX_API_TOKEN
EOF
set -x