Skip to content

Instantly share code, notes, and snippets.

@Citrus34
Created July 6, 2021 01:34
Show Gist options
  • Save Citrus34/7c04915ccf422833379f307cebdeae02 to your computer and use it in GitHub Desktop.
Save Citrus34/7c04915ccf422833379f307cebdeae02 to your computer and use it in GitHub Desktop.
update programs using Pastebin
function update()
term.setCursorPos( 1, -5 ) -- Hide the pastebin retrivial
shell.run( "rm", shell.getRunningProgram() ) -- Delete the current program
shell.run( "pastebin", "get", "PASTEBIN CODE", shell.getRunningProgram() ) -- Update it
shell.run( shell.getRunningProgram() ) -- Restart it
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment