FoxWorn3365

Untitled

Jun 4th, 2021 (edited)
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. local tArgs = { ... }
  2. if #tArgs == 0 then
  3. print("Uso: exec <pacchetto>")
  4. return
  5. end
  6.  
  7. local exec = shell.resolve( tArgs[1] )
  8. if fs.exists("pkgs/"..exec) then
  9. shell.run("pkgs/"..exec)
  10. else
  11. print("Pacchetto non installato!\nFai pkg list all per visualizzare tutti i pacchetti")
  12. end
Add Comment
Please, Sign In to add comment