From 0787908d1b495293bc1d1018d88044617977d3a7 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Tue, 4 Apr 2006 16:15:00 +0000 Subject: [PATCH] Only update manpages if dir exists --- commands/scripts/packit.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/commands/scripts/packit.sh b/commands/scripts/packit.sh index 3d52c94a1..9c27d8f0a 100644 --- a/commands/scripts/packit.sh +++ b/commands/scripts/packit.sh @@ -45,7 +45,8 @@ then rm -f $PI fi -makewhatis /usr/man -makewhatis /usr/local/man -makewhatis /usr/gnu/man -makewhatis /usr/X11R6/man +for d in /usr/man /usr/local/man /usr/gnu/man /usr/X11R6/man +do if [ -d "$d" ] + then makewhatis $d + fi +done -- 2.44.0