Skip to content

Commit 3901e6e

Browse files
committed
Update translation fetching script to use relative paths
1 parent f229226 commit 3901e6e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/fetch-translations.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
export TX_TOKEN=`awk '/token *=/ { print $3; }' <$HOME/.transifexrc`
44

5-
(cd .. && tx pull -a -f --use-git-timestamps)
6-
if find ../app/src -type d -name 'values-*_*' -exec false '{}' +
5+
cd `pwd $0`/..
6+
7+
tx pull -a -f --use-git-timestamps
8+
if find app/src -type d -name 'values-*_*' -exec false '{}' +
79
then
810
echo "No values-XX_RR directory found, good"
911
else
@@ -12,4 +14,4 @@ else
1214
fi
1315

1416
curl -H "Authorization: Bearer $TX_TOKEN" 'https://rest.api.transifex.com/team_memberships?filter\[organization\]=o:bitfireAT&filter\[team\]=o:bitfireAT:t:davx5-team' \
15-
| ./rewrite-translators.rb >../app/src/main/assets/translators.json
17+
| scripts/rewrite-translators.rb >app/src/main/assets/translators.json

0 commit comments

Comments
 (0)