blob: e6c23b03f2fe55872eab41c9aae1a7cf347b1655 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# Script optimised to run from within dhelp's swish++.conf.
# That means:
# * No error checking on parameters; edit swish++.conf the right way.
# * Spit output only on errors (a line pointing to input file).
#
# $1 = Input file, $2 = Output file
2>/dev/null gzip -dc ${1} > ${2}
EXITVAL=$?
if [ ${EXITVAL} -ne 0 ]; then
echo "Error decompressing file: ${1}"
fi
exit ${EXITVAL}
|