2023-11-16 03:10:40 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
2023-12-19 19:59:07 +00:00
|
|
|
if rg --quiet --multiline '^\(ns.*\n^\s*\(:require\n(^\s*(;|#_).*\n)*(^\s*\[status-im\.setup\.i18n-resources\W)' src/status_im/core.cljs; then
|
2023-11-16 03:10:40 +00:00
|
|
|
exit 0
|
|
|
|
elif [ $? -eq 1 ]; then
|
2023-12-19 19:59:07 +00:00
|
|
|
echo "status-im.setup.i18n-resources must be loaded first (be the first one in ns :require form) in status-im.core"
|
2023-11-16 03:10:40 +00:00
|
|
|
echo "For more info, check the comment here https://github.com/status-im/status-mobile/pull/17618#discussion_r1361275489"
|
|
|
|
else
|
|
|
|
exit $?
|
|
|
|
fi
|