From 2c0bd0f2a120144d0b7845f4e8d56fb243ba36ef Mon Sep 17 00:00:00 2001 From: Weiyi Wang Date: Sat, 29 Feb 2020 13:52:34 -0500 Subject: [PATCH] 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. --- .travis/transifex/docker.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis/transifex/docker.sh b/.travis/transifex/docker.sh index 003b298b67..8d0d7e2d45 100644 --- a/.travis/transifex/docker.sh +++ b/.travis/transifex/docker.sh @@ -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