From 4044ea6dbc6388a00e72c2e3c5f3b20023f7f2ec Mon Sep 17 00:00:00 2001 From: deajan Date: Sun, 23 Oct 2016 13:40:55 +0200 Subject: [PATCH] Minor portability fix --- dev/ofunctions.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dev/ofunctions.sh b/dev/ofunctions.sh index d73bf9f..b7e8bde 100644 --- a/dev/ofunctions.sh +++ b/dev/ofunctions.sh @@ -1,6 +1,6 @@ #### MINIMAL-FUNCTION-SET BEGIN #### -## FUNC_BUILD=2016102304 +## FUNC_BUILD=2016102305 ## BEGIN Generic bash functions written in 2013-2016 by Orsiris de Jong - http://www.netpower.fr - ozy@netpower.fr ## To use in a program, define the following variables: @@ -1494,21 +1494,21 @@ function PreInit { if type xz > /dev/null 2>&1 then - COMPRESSION_PROGRAM="| xz$compressionString" + COMPRESSION_PROGRAM="| xz -c$compressionString" COMPRESSION_EXTENSION=.xz elif type lzma > /dev/null 2>&1 then - COMPRESSION_PROGRAM="| lzma$compressionString" + COMPRESSION_PROGRAM="| lzma -c$compressionString" COMPRESSION_EXTENSION=.lzma elif type pigz > /dev/null 2>&1 then - COMPRESSION_PROGRAM="| pigz$compressionString" + COMPRESSION_PROGRAM="| pigz -c$compressionString" COMPRESSION_EXTENSION=.gz # obackup specific COMPRESSION_OPTIONS=--rsyncable elif type gzip > /dev/null 2>&1 then - COMPRESSION_PROGRAM="| gzip$compressionString" + COMPRESSION_PROGRAM="| gzip -c$compressionString" COMPRESSION_EXTENSION=.gz # obackup specific COMPRESSION_OPTIONS=--rsyncable