11 lines
351 B
Bash
Executable File
11 lines
351 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# Write ~/.transifexrc file if not exists
|
|
if [ ! -f ~/.transifexrc ]; then
|
|
echo "[https://www.transifex.com]" > ~/.transifexrc
|
|
echo "hostname = https://www.transifex.com" >> ~/.transifexrc
|
|
echo "username = api" >> ~/.transifexrc
|
|
echo "password = $WP_TRANSIFEX_API_TOKEN" >> ~/.transifexrc
|
|
echo "token =" >> ~/.transifexrc
|
|
fi
|