Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9246


Ignore:
Timestamp:
May 24, 2012, 11:43:25 PM (12 years ago)
Author:
decapitb
Message:

'ls [path] -l' caused crash, changed to 'ls -l [path]'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2012/data/gui/scripts/ShipSelectionMenu.lua

    r9208 r9246  
    66P.shipList = {}
    77function P.onLoad()
    8    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.
     8   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.
    99   os.execute(dircmd .. " > ../levels/templates/.shipmodels") --saves output in a textfile
    1010   --[[TODO: program a Windows Version / platform independent version here:
Note: See TracChangeset for help on using the changeset viewer.