10-26-05 11:02 PM
Basically I have to set it up so that the source and destination may,
or may not, have "g[un]zip" capabilities since this is a portable web
application and thus, the packager has to be equally portable (note
that it's a UNIX-only packager for now, will have to create a Windows
version whenever I feel like it).
An engineering co-worker helped stumble me onto this option:
blah=`which gunzip | grep -E 'no gunzip'`
# LOOK FOR STRING CONTENT IN $blah - IF IT HAS CONTENT, NO GUNZIP,
ELSE, GUNZIP
Phil
[ Post a follow-up to this message ]
|