Skip to content

Commit 4df25dd

Browse files
committed
build: crowdin now requires auth
Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent 4510fa7 commit 4df25dd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sync-crowdin.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
if [[ $# -ne 1 ]]; then
3+
echo "Download https://crowdin.com/backend/download/project/wireguard.zip and provide path as argument"
4+
exit 1
5+
fi
6+
27
set -ex
3-
curl -Lo - https://crowdin.com/backend/download/project/wireguard.zip | bsdtar -C ui/src/main/res -x -f - --strip-components 5 wireguard-android
8+
9+
bsdtar -C ui/src/main/res -x -f "$1" --strip-components 5 wireguard-android
410
find ui/src/main/res -name strings.xml -exec bash -c '[[ $(xmllint --xpath "count(//resources/*)" {}) -ne 0 ]] || rm -rf "$(dirname {})"' \;

0 commit comments

Comments
 (0)