Correcting wrong handling of --rsyncable in defaults autodetection of gzip options.

This commit is contained in:
Daniel Baumann 2010-06-21 22:26:11 +02:00
parent 11ce1dbcf1
commit b47f19d423
1 changed files with 2 additions and 5 deletions

View File

@ -73,12 +73,9 @@ Set_defaults ()
GZIP_OPTIONS="${GZIP_OPTIONS:---best}" GZIP_OPTIONS="${GZIP_OPTIONS:---best}"
if gzip --help | grep -qs "\-\-rsyncable" && \ if gzip --help | grep -qs "\-\-rsyncable"
! echo ${GZIP_OPTIONS} | grep -q rsyncable
then then
GZIP_OPTIONS="${GZIP_OPTIONS} --rsyncable" GZIP_OPTIONS="$(echo ${GZIP_OPTIONS} | sed -e 's|--rsyncable||') --rsyncable"
else
GZIP_OPTIONS="$(echo ${GZIP_OPTIONS} | sed -e 's|--rsyncable||')"
fi fi
# Setting apt recommends # Setting apt recommends