[Orxonox-commit 4575] r9246 - code/branches/presentation2012/data/gui/scripts
decapitb at orxonox.net
decapitb at orxonox.net
Thu May 24 23:43:25 CEST 2012
Author: decapitb
Date: 2012-05-24 23:43:25 +0200 (Thu, 24 May 2012)
New Revision: 9246
Modified:
code/branches/presentation2012/data/gui/scripts/ShipSelectionMenu.lua
Log:
'ls [path] -l' caused crash, changed to 'ls -l [path]'
Modified: code/branches/presentation2012/data/gui/scripts/ShipSelectionMenu.lua
===================================================================
--- code/branches/presentation2012/data/gui/scripts/ShipSelectionMenu.lua 2012-05-24 20:07:43 UTC (rev 9245)
+++ code/branches/presentation2012/data/gui/scripts/ShipSelectionMenu.lua 2012-05-24 21:43:25 UTC (rev 9246)
@@ -5,7 +5,7 @@
P.scrollbarWidth = 13
P.shipList = {}
function P.onLoad()
- local dircmd = "ls ../levels/templates/ -l | awk '{print $9}' | grep \"spaceship\" | sed -e 's/\\.[a-zA-Z]*$//'" -- go to spaceships folder and generate a list of installed shipmodels.
+ local dircmd = "ls -l ../levels/templates/ | awk '{print $9}' | grep \"spaceship\" | sed -e 's/\\.[a-zA-Z]*$//'" -- go to spaceships folder and generate a list of installed shipmodels.
os.execute(dircmd .. " > ../levels/templates/.shipmodels") --saves output in a textfile
--[[TODO: program a Windows Version / platform independent version here:
if string.sub(package.config,1,1) == '\\' then
More information about the Orxonox-commit
mailing list