add null checks
This commit is contained in:
		
							parent
							
								
									e026e44e52
								
							
						
					
					
						commit
						7c34250e35
					
				
					 1 changed files with 9 additions and 4 deletions
				
			
		|  | @ -140,11 +140,16 @@ if programToInstall == nil then | |||
|     local programsText = programsFile.readAll() | ||||
|     local programsTable = split(programsText, "\n") | ||||
|     for _, value in ipairs(programsTable) do | ||||
|         local files = getAllFiles(value) | ||||
|         for _, value2 in ipairs(files) do | ||||
|             downloadFile(value, value2) | ||||
|         if value ~= "" and value ~= nil then | ||||
|             print("checking for updates for " .. value) | ||||
|             local files = getAllFiles(value) | ||||
|             if files ~= nil then | ||||
|                 for _, value2 in ipairs(files) do | ||||
|                     downloadFile(value, value2) | ||||
|                 end | ||||
|                 finishInstall(files) | ||||
|             end | ||||
|         end | ||||
|         finishInstall(files) | ||||
|     end | ||||
| else | ||||
|     print("getting updates for " .. programToInstall .. "...") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue