From 1418ecde0dc28dc7d32a9ffdcf0721db7bd2d624 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Tue, 10 Nov 2020 00:36:16 +0530 Subject: [PATCH] Skip rm invocation when no files to delete --- plugins/dups | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/dups b/plugins/dups index 02954e83..98e8f727 100755 --- a/plugins/dups +++ b/plugins/dups @@ -58,10 +58,10 @@ read -r force if [ "$force" = "f" ]; then #shellcheck disable=SC2016 - sed -E "$sedcmd" "$tmpfile" | tr '\n' '\0' | xargs -0 sh -c 'rm -f "$0" "$@"