index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dave Reisner <dreisner@archlinux.org> | 2013-02-17 12:02:20 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-02-24 13:11:54 +1000 |
commit | 972528c021606934da85aef1d9223dea1d40e2c6 (patch) | |
tree | d91d1278bf359388cc8cf1addec13f2ed6794409 /contrib | |
parent | 34749e177db5d4aafdb9f3de630c7ab193a0f36d (diff) |
-rw-r--r-- | contrib/paccache.sh.in | 4 |
diff --git a/contrib/paccache.sh.in b/contrib/paccache.sh.in index 74bac8a4..46eb2306 100644 --- a/contrib/paccache.sh.in +++ b/contrib/paccache.sh.in @@ -310,9 +310,9 @@ totalsaved=$(@SIZECMD@ "${candidates[@]}" | awk '{ sum += $1 } END { print sum } # crush. kill. destroy. (( verbose )) && cmdopts+=(-v) if (( delete )); then - runcmd rm "${cmdopts[@]}" "${candidates[@]}" + printf '%s\0' "${candidates[@]}" | runcmd xargs -0 rm "${cmdopts[@]}" elif (( move )); then - runcmd mv "${cmdopts[@]}" "${candidates[@]}" "$movedir" + printf '%s\0' "${candidates[@]}" | runcmd xargs -0 mv "${cmdopts[@]}" -t "$movedir" fi summarize "$pkgcount" "${candidates[@]}" |