forked from CIT/Vmeda.Online
		
	Merge pull request #2866 from crazyserver/MOBILE-3320
MOBILE-3320 scripts: Fix not existing folder problem
This commit is contained in:
		
						commit
						98814395e5
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user