From 2f05ca09c974c1993ee865c78cd2a1f2965b112b Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 13 Jun 2025 23:43:54 +0000 Subject: [PATCH] contrib/.../check_submodules.sh: fix stale locale path --- contrib/deterministic-build/check_submodules.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/contrib/deterministic-build/check_submodules.sh b/contrib/deterministic-build/check_submodules.sh index 7cf802f62..708d22c5e 100755 --- a/contrib/deterministic-build/check_submodules.sh +++ b/contrib/deterministic-build/check_submodules.sh @@ -1,9 +1,11 @@ #!/usr/bin/env bash -here=$(dirname "$0") -test -n "$here" -a -d "$here" || exit +set -e -cd ${here}/../.. +PROJECT_ROOT="$(dirname "$(readlink -e "$0")")/../.." +LOCALE="$PROJECT_ROOT/electrum/locale/" + +cd "$PROJECT_ROOT" git submodule init git submodule update @@ -19,7 +21,7 @@ function get_git_mtime { fail=0 -if [ $(date +%s -d "2 weeks ago") -gt $(get_git_mtime "contrib/deterministic-build/electrum-locale/") ]; then +if [ $(date +%s -d "2 weeks ago") -gt $(get_git_mtime "$LOCALE") ]; then echo "Last update from electrum-locale is older than 2 weeks."\ "Please update it to incorporate the latest translations from crowdin." fail=1