From: Anatoly Pugachev Date: Sun, 15 Mar 2020 23:56:12 +0000 (+0300) Subject: Fix sa2 script, so it wont complain about "unrecognized archive format" X-Git-Tag: v12.3.2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1927f5ff58338c16b6967e1c45327b7e1da90793;p=sysstat Fix sa2 script, so it wont complain about "unrecognized archive format" on empty list for compress program. Signed-off-by: Anatoly Pugachev --- diff --git a/sa2.in b/sa2.in index 98cfafa..bc9caba 100644 --- a/sa2.in +++ b/sa2.in @@ -65,7 +65,6 @@ UNCOMPRESSED_SAFILES_REGEX='/sar?[0-9]{2,8}$' find "${SA_DIR}" -type f -mtime +${COMPRESSAFTER} \ | egrep "${UNCOMPRESSED_SAFILES_REGEX}" \ - | xargs "${ZIP}" > /dev/null + | xargs -r "${ZIP}" > /dev/null exit 0 -