contrib/.../check_submodules.sh: fix stale locale path
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
here=$(dirname "$0")
|
set -e
|
||||||
test -n "$here" -a -d "$here" || exit
|
|
||||||
|
|
||||||
cd ${here}/../..
|
PROJECT_ROOT="$(dirname "$(readlink -e "$0")")/../.."
|
||||||
|
LOCALE="$PROJECT_ROOT/electrum/locale/"
|
||||||
|
|
||||||
|
cd "$PROJECT_ROOT"
|
||||||
|
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
@@ -19,7 +21,7 @@ function get_git_mtime {
|
|||||||
fail=0
|
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."\
|
echo "Last update from electrum-locale is older than 2 weeks."\
|
||||||
"Please update it to incorporate the latest translations from crowdin."
|
"Please update it to incorporate the latest translations from crowdin."
|
||||||
fail=1
|
fail=1
|
||||||
|
|||||||
Reference in New Issue
Block a user