inform user when no updates are found
This commit is contained in:
		
							parent
							
								
									c262e983d4
								
							
						
					
					
						commit
						eef823a684
					
				
					 1 changed files with 9 additions and 3 deletions
				
			
		|  | @ -125,9 +125,15 @@ if programToInstall == nil then | |||
|         finishInstall(files) | ||||
|     end | ||||
| else | ||||
|     print("getting updates...") | ||||
|     local files = getAllFiles() | ||||
|     for _, value in ipairs(files) do | ||||
|         downloadFile(value) | ||||
| 
 | ||||
|     if #files == 0 then | ||||
|         print("no updates found.") | ||||
|     else | ||||
|         for _, value in ipairs(files) do | ||||
|             downloadFile(value) | ||||
|         end | ||||
|         finishInstall(files) | ||||
|     end | ||||
|     finishInstall(files) | ||||
| end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue