iteration
This commit is contained in:
		@ -21,13 +21,13 @@ if response.getResponseCode() == 200 then
 | 
			
		||||
 | 
			
		||||
    -- check if program is in path
 | 
			
		||||
    if not shell.resolveProgram(program_name) then
 | 
			
		||||
        print("Program not in path, adding to path")
 | 
			
		||||
        io.write("Program not in path, adding to path\n")
 | 
			
		||||
        shell.setPath(shell.path() .. ":" .. bin_path)
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    print("Updated " .. program_name .. ".lua")
 | 
			
		||||
    io.write("Updated " .. program_name .. ".lua\n")
 | 
			
		||||
else
 | 
			
		||||
    print("Failed to update " .. program_name .. ".lua")
 | 
			
		||||
    print(response)
 | 
			
		||||
    io.write("Failed to update " .. program_name .. ".lua\n")
 | 
			
		||||
    io.write(response)
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user