[ut2004] Cache installer
3.1415926535897932384626433832 at gmx.net
Mon Jun 6 14:49:13 EDT 2005
> If you don't know, UT and UT2004 use the same cache layout.
No, I never played UT :)
> Just change .loki/ut/Cache to .ut2004/Cache and of course it works.
Maybe put the dir into one variable so one only has to change it in one
And both our scripts could be exploited by the $( ) or `` shell escapes
(which are valid filenamecharacters at least on on Linux) since I pipe
into sh and you directly execute the file via sh:
as a cache.ini entry - to fix it (as I did in my script) escape these chars:
( cat cache.ini | grep -v Cache | ....
( grep -v Cache cache.ini | sed 's,\(`\|\$\),\\\1,g' | ....
And back to arguing which script is "better" :)
My script already places the files in their appropriate folders and
leaves modfiles (.u) in place (since mods are better not installed this
way), without a cache.ini entry the files in the cache dir are invisible
: Admitedly I only found it looking for bugs in your script and then
finding the same in mine :)
More information about the ut2004