Fix horizon-upstream-translation-update
Check if there is already a .tx folder and run tx --init only if there is none. The horizon repo currently has one and thus the job fails to build. Change-Id: Ifa3115943c49550f3d72007484e9343f7de1d8ca
This commit is contained in:
parent
cde0be1e1a
commit
4939be236f
@ -26,8 +26,10 @@ fi
|
||||
git config user.name "OpenStack Jenkins"
|
||||
git config user.email "jenkins@openstack.org"
|
||||
|
||||
# initialize transifex client
|
||||
tx init --host=https://www.transifex.com
|
||||
# Initialize the transifex client, if there's no .tx directory
|
||||
if [ ! -d .tx ] ; then
|
||||
tx init --host=https://www.transifex.com
|
||||
fi
|
||||
# Horizon JavaScript Translations
|
||||
tx set --auto-local -r ${PROJECT}.${PROJECT}-js-translations \
|
||||
"${PROJECT}/locale/<lang>/LC_MESSAGES/djangojs.po" --source-lang en \
|
||||
|
Loading…
Reference in New Issue
Block a user