diff options
author | Daniel Baumann <daniel@debian.org> | 2010-06-21 22:26:11 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2010-06-21 22:26:11 +0200 |
commit | b47f19d4235a20098a529e5a6a457b37c87213aa (patch) | |
tree | a650d286310a1c544ce7177f8273c6278911fe1e | |
parent | 11ce1dbcf18d0690292ec9740937502173aabdba (diff) | |
download | vyos-live-build-b47f19d4235a20098a529e5a6a457b37c87213aa.tar.gz vyos-live-build-b47f19d4235a20098a529e5a6a457b37c87213aa.zip |
Correcting wrong handling of --rsyncable in defaults autodetection of gzip options.
-rwxr-xr-x | functions/defaults.sh | 7 |
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 |