mirror of
https://github.com/gsantner/dandelion
synced 2024-11-05 03:56:01 +01:00
34 lines
794 B
Bash
34 lines
794 B
Bash
|
#!/bin/bash
|
||
|
#########################################################
|
||
|
#
|
||
|
# Title
|
||
|
#
|
||
|
# Created by Gregor Santer (gsantner), 2016
|
||
|
# https://gsantner.github.io/
|
||
|
#
|
||
|
#########################################################
|
||
|
|
||
|
|
||
|
#Pfade
|
||
|
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||
|
SCRIPTFILE=$(readlink -f $0)
|
||
|
SCRIPTPATH=$(dirname $SCRIPTFILE)
|
||
|
argc=$#
|
||
|
|
||
|
#########################################################
|
||
|
cd "$SCRIPTDIR"
|
||
|
|
||
|
if [ ! -f "crowdin.yaml" ] ; then
|
||
|
echo "base_path: $(realpath '../../')" > 'crowdin.yaml'
|
||
|
cat "../../crowdin.yaml" >> "crowdin.yaml"
|
||
|
fi
|
||
|
|
||
|
if grep -q "DONT_PUSH" "crowdin.yaml" ; then
|
||
|
echo "Insert API key to crowdin.yaml"
|
||
|
echo "and update folder to the root folder of the repository"
|
||
|
exit
|
||
|
fi
|
||
|
|
||
|
# Load latest translations
|
||
|
crowdin-cli download -b master
|