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) |         finishInstall(files) | ||||||
|     end |     end | ||||||
| else | else | ||||||
|  |     print("getting updates...") | ||||||
|     local files = getAllFiles() |     local files = getAllFiles() | ||||||
|  | 
 | ||||||
|  |     if #files == 0 then | ||||||
|  |         print("no updates found.") | ||||||
|  |     else | ||||||
|         for _, value in ipairs(files) do |         for _, value in ipairs(files) do | ||||||
|             downloadFile(value) |             downloadFile(value) | ||||||
|         end |         end | ||||||
|         finishInstall(files) |         finishInstall(files) | ||||||
|  |     end | ||||||
| end | end | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue