Pārlūkot izejas kodu

Skip rm invocation when no files to delete

master
Arun Prakash Jana pirms 4 gadiem
vecāks
revīzija
1418ecde0d
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: A75979F35C080412
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      plugins/dups

+ 2
- 2
plugins/dups Parādīt failu

@@ -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" "$@" </dev/tty'
sed -E "$sedcmd" "$tmpfile" | tr '\n' '\0' | xargs -0 -r sh -c 'rm -f "$0" "$@" </dev/tty'
else
#shellcheck disable=SC2016
sed -E "$sedcmd" "$tmpfile" | tr '\n' '\0' | xargs -0 sh -c 'rm -i "$0" "$@" </dev/tty'
sed -E "$sedcmd" "$tmpfile" | tr '\n' '\0' | xargs -0 -r sh -c 'rm -i "$0" "$@" </dev/tty'
fi

rm "$tmpfile"


Notiek ielāde…
Atcelt
Saglabāt