]> granicus.if.org Git - sysstat/commitdiff
Fix sa2 script, so it wont complain about "unrecognized archive format"
authorAnatoly Pugachev <matorola@gmail.com>
Sun, 15 Mar 2020 23:56:12 +0000 (02:56 +0300)
committerAnatoly Pugachev <matorola@gmail.com>
Sun, 15 Mar 2020 23:56:12 +0000 (02:56 +0300)
on empty list for compress program.

Signed-off-by: Anatoly Pugachev <matorola@gmail.com>
sa2.in

diff --git a/sa2.in b/sa2.in
index 98cfafa685cc3273937b13f46642074ad41ba071..bc9caba697f935ada2afb7fc79485d7728884590 100644 (file)
--- 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
-