From: Zygo Blaxell Date: Fri, 14 May 2010 16:40:03 +0000 (-0400) Subject: dm6: verbose output during garbage collection X-Git-Tag: dm6-0.20100514~5^2 X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=dupemerge;a=commitdiff_plain;h=941242a8d5dfcd2fbbbd306d00ef38115f841600 dm6: verbose output during garbage collection --- diff --git a/dm6 b/dm6 index a25804b..34bb654 100755 --- a/dm6 +++ b/dm6 @@ -221,9 +221,9 @@ while () { print STDERR "\nGarbage collection in '$link_dir'..."; chdir($link_dir) || die "chdir: $link_dir: $!"; print STDERR "\nRemoving files with link count < 3..."; -system("find . -type f -links -3 -print0 | xargs -0 rm -f") and die "system: exit status $?"; +system("find . -type f -links -3 -print0 | xargs -0rt rm -f") and die "system: exit status $?"; print STDERR "\nRemoving empty directories..."; -system("find . -type d -empty -print0 | xargs -0r rmdir -p --ignore-fail-on-non-empty") and die "system: exit status $?"; +system("find . -type d -empty -print0 | xargs -0rt rmdir -p --ignore-fail-on-non-empty") and die "system: exit status $?"; print STDERR "\nDone.\n"; exit(0);