mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-24 11:34:32 +00:00
12 lines
303 B
Lua
Executable File
12 lines
303 B
Lua
Executable File
#!/usr/bin/env lua
|
|
|
|
function system(command)
|
|
local fd = io.popen(command, "r")
|
|
string = fd:read("*all")
|
|
fd:close()
|
|
return (string.gsub(string, "\n$", ""))
|
|
end
|
|
|
|
amppath = os.getenv("AMPROOT") or error("AMPROOT not defined")
|
|
print((string.gsub(arg[1] or system("pwd"), "^"..amppath, "")))
|