Files
piratepoet/tasks/transifex_init.sh
2020-04-07 16:45:50 +02:00

13 lines
299 B
Bash
Executable File

#!/bin/bash -e
# Write ~/.transifexrc file if not exists
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
fi