Use local .transifexrc to avoid writing to user's home directory
[MAILPOET-3919]
This commit is contained in:
1
mailpoet/.gitignore
vendored
1
mailpoet/.gitignore
vendored
@@ -8,6 +8,7 @@ tests/_output/*
|
||||
tests/_support/_generated/*
|
||||
tests/plugins
|
||||
.env
|
||||
.transifexrc
|
||||
/views/cache/**
|
||||
temp
|
||||
mailpoet.zip
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user