We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4510fa7 commit 4df25ddCopy full SHA for 4df25dd
sync-crowdin.sh
@@ -1,4 +1,10 @@
1
#!/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
+
7
set -ex
-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
10
find ui/src/main/res -name strings.xml -exec bash -c '[[ $(xmllint --xpath "count(//resources/*)" {}) -ne 0 ]] || rm -rf "$(dirname {})"' \;
0 commit comments