MOBILE-3320 scripts: Fix not existing folder problem
parent
f147c41fca
commit
36ba842fec
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue