MOBILE-4368 scripts: Lang packs path should be different in both scripts

main
Pau Ferrer Ocaña 2023-10-31 16:08:09 +01:00
parent 9ff408d3b9
commit dd122138d3
3 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,8 @@
SERVER_URL='https://packaging.moodle.org/'
LANGPACKS_PATH='/tmp/moodle-lang'
# Downloads a file and if it's a zip file, unzip it.
function download_file {
local url=$1

View File

@ -6,7 +6,6 @@
LANG_PATH='../src/assets/lang'
SUFFIX='' # Determines suffix of the langpacks to be merged. Ie, using wp will include en.json and en_wp.json
# (and the later will override the earlier).
LANGPACKS_PATH='/tmp/moodleapp-lang'
# Get the version of the Moodle App to fetch latest languages.
function get_app_version {

View File

@ -8,6 +8,8 @@ APPMODULENAME='local_moodlemobileapp'
TOTAL_STRINGS=0
LANGINDEX_STRINGS=0
LANGPACKS_PATH='/tmp/moodleapp-lang'
function progressbar {
let _progress=(${1}*100/100*100)/100
let _done=(${_progress}*4)/10