Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save petergi/a38ac929a1b01743760d6456ca99e264 to your computer and use it in GitHub Desktop.

Select an option

Save petergi/a38ac929a1b01743760d6456ca99e264 to your computer and use it in GitHub Desktop.
local function system(command)
local file = assert(io.popen(command, "r"))
local output = file:read("*all"):gsub("%s+", "")
file:close()
return output
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment