summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index cbff1f9..4708857 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -74,6 +74,16 @@ Set_defaults ()
APT_OPTIONS="${APT_OPTIONS:---yes}"
APTITUDE_OPTIONS="${APTITUDE_OPTIONS:---assume-yes}"
+ GZIP_OPTIONS="${GZIP_OPTIONS:---best}"
+
+ if gzip --help | grep -qs "\-\-rsyncable" && \
+ ! echo ${GZIP_OPTIONS} | grep -q rsyncable
+ then
+ GZIP_OPTIONS="${GZIP_OPTIONS} --rsyncable"
+ else
+ GZIP_OPTIONS="$(echo ${GZIP_OPTIONS} | sed -e 's|--rsyncable||')"
+ fi
+
# Setting apt recommends
case "${LH_MODE}" in
debian|debian-release|ubuntu)