From 68590f39532f414885584fd7079a8582ef689bd8 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sat, 23 Jul 2016 11:14:49 -0700 Subject: [PATCH] gc.sh: suppress darcs optimize output Without show_progress, send darcs optimize output to /dev/null. Also avoid dying on a darcs optimize failure. Signed-off-by: Kyle J. McKay --- jobd/gc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jobd/gc.sh b/jobd/gc.sh index 04c9751..ff0b68a 100755 --- a/jobd/gc.sh +++ b/jobd/gc.sh @@ -628,8 +628,10 @@ if [ ! -e .nofetch ] && [ -n "$cfg_mirror" ]; then if [ -d "$basedarcs.darcs" ]; then ( cd "$basedarcs.darcs" + # without show_progress suppress non-error output + [ -n "$show_progress" ] || exec >/dev/null # Note that this does not optimize _darcs/inventories/ :( - darcs optimize + darcs optimize || : ) fi fi -- 2.11.4.GIT