stevedonovan/Orbiter — pull request #1 by likethesky (2012-08-17 17:54:19+00:00)
Title: fixed a minor typo bug that affects Darwin OS users of Orbiter

Darwin users get the following when they try to use Orbiter:
$ lua hello.lua --launch
Orbiter serving on http://localhost:8080
lua: /usr/local/share/lua/5.1/orbiter/init.lua:115: attempt to perform arithmetic on a string value
stack traceback:
/usr/local/share/lua/5.1/orbiter/init.lua:115: in function 'which'
/usr/local/share/lua/5.1/orbiter/init.lua:132: in function 'launch_browser'
/usr/local/share/lua/5.1/orbiter/init.lua:448: in function 'run'
hello.lua:23: in main chunk
[C]: ?
Wrong variable used. A global no less -- using strict.lua would have caught this for you!

This fixes the above for Darwin users (by changing 'line' to 'os').