Skip to content

Commit 2f05ca0

Browse files
committed
contrib/.../check_submodules.sh: fix stale locale path
1 parent f8cfedb commit 2f05ca0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

contrib/deterministic-build/check_submodules.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#!/usr/bin/env bash
22

3-
here=$(dirname "$0")
4-
test -n "$here" -a -d "$here" || exit
3+
set -e
54

6-
cd ${here}/../..
5+
PROJECT_ROOT="$(dirname "$(readlink -e "$0")")/../.."
6+
LOCALE="$PROJECT_ROOT/electrum/locale/"
7+
8+
cd "$PROJECT_ROOT"
79

810
git submodule init
911
git submodule update
@@ -19,7 +21,7 @@ function get_git_mtime {
1921
fail=0
2022

2123

22-
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
2325
echo "Last update from electrum-locale is older than 2 weeks."\
2426
"Please update it to incorporate the latest translations from crowdin."
2527
fail=1

0 commit comments

Comments
 (0)