Correcting wrong handling of --rsyncable in defaults autodetection of gzip options.
This commit is contained in:
parent
11ce1dbcf1
commit
b47f19d423
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue