diff options
| author | Michael Forney <mforney@mforney.org> | 2020-05-09 23:59:31 +0000 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-05-10 02:15:55 -0700 |
| commit | 2dfb6db8071bb9c7c0fe24f7f30568e2ff745669 (patch) | |
| tree | 87abe0e949949b4e9ba9d037160f9e28a8245382 /setup.lua | |
| parent | 1f24c29f1916fb234bbfbb311c5fcb38cfb28c00 (diff) | |
Lua 5.1 compatibility
Diffstat (limited to 'setup.lua')
| -rwxr-xr-x | setup.lua | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1,5 +1,14 @@ #!/bin/lua +-- Lua 5.1 compatibility +do + local os_execute = os.execute + os.execute = function(cmd) + local ret = os_execute(cmd) + return ret == true or ret == 0 + end +end + basedir = arg[0]:match('(.*)/') or '.' if not os.execute('test -f config.lua') then |
