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/_support/_generated/*
|
||||||
tests/plugins
|
tests/plugins
|
||||||
.env
|
.env
|
||||||
|
.transifexrc
|
||||||
/views/cache/**
|
/views/cache/**
|
||||||
temp
|
temp
|
||||||
mailpoet.zip
|
mailpoet.zip
|
||||||
|
@@ -1,12 +1,12 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
# Write ~/.transifexrc file if not exists
|
# Write ~/.transifexrc file if not exists
|
||||||
if [ ! -f ~/.transifexrc ]; then
|
if [ ! -f .transifexrc ]; then
|
||||||
{
|
{
|
||||||
echo "[https://www.transifex.com]"
|
echo "[https://www.transifex.com]"
|
||||||
echo "hostname = https://www.transifex.com"
|
echo "hostname = https://www.transifex.com"
|
||||||
echo "username = api"
|
echo "username = api"
|
||||||
echo "password = ${WP_TRANSIFEX_API_TOKEN}"
|
echo "password = ${WP_TRANSIFEX_API_TOKEN}"
|
||||||
echo "token ="
|
echo "token ="
|
||||||
} > ~/.transifexrc
|
} > .transifexrc
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user