Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
test/run: fixed OS X (where os.getenv("OS") returns nil)
Browse files Browse the repository at this point in the history
  • Loading branch information
agladysh committed Feb 8, 2009
1 parent 046d736 commit 0ddddd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/run.mlua
Expand Up @@ -3,7 +3,7 @@

-{ extension 'xloop' }

ls = io.popen (os.getenv "OS" :match "^Windows" and "dir /b" or "ls")
ls = io.popen ( (os.getenv("OS") or "") :match "^Windows" and "dir /b" or "ls")
this_script = arg[1]

for filename in ls :lines() if filename ~= this_script and filename :strmatch "%.m?lua$" do
Expand Down

0 comments on commit 0ddddd8

Please sign in to comment.