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 f8cfedb commit 2f05ca0Copy full SHA for 2f05ca0
contrib/deterministic-build/check_submodules.sh
@@ -1,9 +1,11 @@
1
#!/usr/bin/env bash
2
3
-here=$(dirname "$0")
4
-test -n "$here" -a -d "$here" || exit
+set -e
5
6
-cd ${here}/../..
+PROJECT_ROOT="$(dirname "$(readlink -e "$0")")/../.."
+LOCALE="$PROJECT_ROOT/electrum/locale/"
7
+
8
+cd "$PROJECT_ROOT"
9
10
git submodule init
11
git submodule update
@@ -19,7 +21,7 @@ function get_git_mtime {
19
21
fail=0
20
22
23
-if [ $(date +%s -d "2 weeks ago") -gt $(get_git_mtime "contrib/deterministic-build/electrum-locale/") ]; then
24
+if [ $(date +%s -d "2 weeks ago") -gt $(get_git_mtime "$LOCALE") ]; then
25
echo "Last update from electrum-locale is older than 2 weeks."\
26
"Please update it to incorporate the latest translations from crowdin."
27
fail=1
0 commit comments