From 469038f5965dad136c899b790b5bbba5b76cc82b Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Thu, 31 Aug 2023 13:04:52 +0200 Subject: [PATCH] MOBILE-4362 lang: Improve error message --- scripts/lang_functions.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/lang_functions.sh b/scripts/lang_functions.sh index fa7b4fab3..649f57c1a 100644 --- a/scripts/lang_functions.sh +++ b/scripts/lang_functions.sh @@ -14,6 +14,12 @@ function get_app_version { return fi + if ! command -v jq &> /dev/null + then + echo "You need to install the jq program in order to run this command" + exit 1 + fi + APP_VERSION=$(jq -r '.versionname' ../moodle.config.json| cut -d. -f1-2) if [ ! -z "$APP_VERSION" ]; then export LANGVERSION=$APP_VERSION