MOBILE-3320 scripts: Fix not existing folder problem

main
Pau Ferrer Ocaña 2021-07-02 15:17:43 +02:00
parent f147c41fca
commit 36ba842fec
2 changed files with 6 additions and 1 deletions

View File

@ -102,7 +102,7 @@ function get_language {
pushd $LANGPACKSFOLDER > /dev/null
curl -s $MOODLEORG_URL/$lastversion/$lang.zip --output $lang.zip > /dev/null
rm -R $lang
rm -R $lang > /dev/null 2>&1> /dev/null
unzip -o -u $lang.zip > /dev/null
# This is the AWS version to get the language but right now it's slower.

View File

@ -46,6 +46,11 @@ if (isset($argv[1]) && !empty($argv[1])) {
$languages = $config_langs;
}
if (!file_exists(ASSETSPATH)) {
mkdir(ASSETSPATH);
}
$keys = get_langindex_keys();
$added_langs = build_languages($languages, $keys);