Lazy-Newb-Pack / Lazy-Newb-Pack-Linux

A Lazy Newb Pack for Linux
http://lazynewbpack.com/
150 stars 12 forks source link

Dereference symbolic links to 'startlnp' #26

Closed sbuller closed 8 years ago

sbuller commented 8 years ago

I like to link to game start scripts from a directory in my PATH. By adding 'readlink -f' the symlink is dereferenced, allowing the start script to tolerate this.

lethosor commented 8 years ago

readlink returns nothing for me when a path isn't a link, which causes cd to do nothing (although that's BSD's readlink; Linux's might behave differently). I'll try to work something out, but thanks for the fix!

sbuller commented 8 years ago

Yeah, I was wondering about the compatibility of the fix - kinda hard to test. Thanks for cleaning that up for me, and the quick merge!