summaryrefslogtreecommitdiff
path: root/functions/defaults.sh
diff options
context:
space:
mode:
Diffstat (limited to 'functions/defaults.sh')
-rwxr-xr-xfunctions/defaults.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index e16635dae..c395af00f 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -73,12 +73,9 @@ Set_defaults ()
GZIP_OPTIONS="${GZIP_OPTIONS:---best}"
- if gzip --help | grep -qs "\-\-rsyncable" && \
- ! echo ${GZIP_OPTIONS} | grep -q rsyncable
+ if gzip --help | grep -qs "\-\-rsyncable"
then
- GZIP_OPTIONS="${GZIP_OPTIONS} --rsyncable"
- else
- GZIP_OPTIONS="$(echo ${GZIP_OPTIONS} | sed -e 's|--rsyncable||')"
+ GZIP_OPTIONS="$(echo ${GZIP_OPTIONS} | sed -e 's|--rsyncable||') --rsyncable"
fi
# Setting apt recommends