Use local .transifexrc to avoid writing to user's home directory

[MAILPOET-3919]
This commit is contained in:
Jan Jakes
2022-01-18 13:48:05 +01:00
committed by Veljko V
parent 3ae90da1d5
commit bfb69e7b18
2 changed files with 3 additions and 2 deletions

1
mailpoet/.gitignore vendored
View File

@@ -8,6 +8,7 @@ tests/_output/*
tests/_support/_generated/*
tests/plugins
.env
.transifexrc
/views/cache/**
temp
mailpoet.zip

View File

@@ -1,12 +1,12 @@
#!/bin/bash -e
# Write ~/.transifexrc file if not exists
if [ ! -f ~/.transifexrc ]; then
if [ ! -f .transifexrc ]; then
{
echo "[https://www.transifex.com]"
echo "hostname = https://www.transifex.com"
echo "username = api"
echo "password = ${WP_TRANSIFEX_API_TOKEN}"
echo "token ="
} > ~/.transifexrc
} > .transifexrc
fi