Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/docker-ci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-04-27 18:00:41 +0300
committerMorris Jobke <hey@morrisjobke.de>2017-04-27 18:00:41 +0300
commit6daf7236225f9e37a73ef2fb86071f51e09b5f13 (patch)
tree36f5c16ce04ab593372163ba459bc4815e1c8dcc
parentf4d3d5df98bd97d57ea0ba2b9309d3852045f199 (diff)
fix case when there are no translationstranslations-apps-2
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
-rwxr-xr-xtranslations/handleAppsTranslations.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/translations/handleAppsTranslations.sh b/translations/handleAppsTranslations.sh
index 422396f..e1e065b 100755
--- a/translations/handleAppsTranslations.sh
+++ b/translations/handleAppsTranslations.sh
@@ -24,11 +24,13 @@ do
wget https://raw.githubusercontent.com/owncloud/administration/master/jenkins/translation_sync/l10n.pl
perl ./l10n.pl $app read
- # push sources
- tx push -s
+ if [ -d "templates" ]; then
+ # push sources
+ tx push -s
- # pull translations - force pull because a fresh clone has newer time stamps
- tx pull -f -a --minimum-perc=25
+ # pull translations - force pull because a fresh clone has newer time stamps
+ tx pull -f -a --minimum-perc=25
+ done
# delete removed l10n files that are used for language detection (they will be recreated during the write)
rm -f *.js *.json