From 1927f5ff58338c16b6967e1c45327b7e1da90793 Mon Sep 17 00:00:00 2001 From: Anatoly Pugachev Date: Mon, 16 Mar 2020 02:56:12 +0300 Subject: [PATCH] Fix sa2 script, so it wont complain about "unrecognized archive format" on empty list for compress program. Signed-off-by: Anatoly Pugachev --- sa2.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 - -- 2.40.0