MOBILE-4362 lang: Improve error message
parent
74439956fd
commit
469038f596
|
@ -14,6 +14,12 @@ function get_app_version {
|
||||||
return
|
return
|
||||||
fi
|
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)
|
APP_VERSION=$(jq -r '.versionname' ../moodle.config.json| cut -d. -f1-2)
|
||||||
if [ ! -z "$APP_VERSION" ]; then
|
if [ ! -z "$APP_VERSION" ]; then
|
||||||
export LANGVERSION=$APP_VERSION
|
export LANGVERSION=$APP_VERSION
|
||||||
|
|
Loading…
Reference in New Issue