forked from xomf/slabOS
		
	Update updater.lua
This commit is contained in:
		
							parent
							
								
									88d3fe655f
								
							
						
					
					
						commit
						2dd5de5c9b
					
				| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
local CURRENT_CLIENT_VERSION = "0.0.0.3"
 | 
			
		||||
local CURRENT_CLIENT_VERSION = "0.0.0.4"
 | 
			
		||||
local INSTALL_PATH = "/"
 | 
			
		||||
 | 
			
		||||
function http_get(url)
 | 
			
		||||
| 
						 | 
				
			
			@ -29,9 +29,8 @@ if manifest_json.version ~= CURRENT_CLIENT_VERSION then
 | 
			
		|||
  
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  print("Rebooting device in 5 seconds.")
 | 
			
		||||
  sleep(5)
 | 
			
		||||
  print("Please reboot your device.")
 | 
			
		||||
  os.reboot()
 | 
			
		||||
else
 | 
			
		||||
  print("No update availiable")
 | 
			
		||||
  print("No update availiable.")
 | 
			
		||||
end
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user