diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-04-27 18:00:41 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-04-27 18:00:41 +0300 |
commit | 6daf7236225f9e37a73ef2fb86071f51e09b5f13 (patch) | |
tree | 36f5c16ce04ab593372163ba459bc4815e1c8dcc | |
parent | f4d3d5df98bd97d57ea0ba2b9309d3852045f199 (diff) |
fix case when there are no translationstranslations-apps-2
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
-rwxr-xr-x | translations/handleAppsTranslations.sh | 10 |
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 |