exit with proper status rather than always 0
authorMike Frysinger <vapier@gentoo.org>
Fri, 3 Feb 2006 03:07:23 +0000 (03:07 -0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 3 Feb 2006 03:07:23 +0000 (03:07 -0000)
svn path=/main/trunk/; revision=2627

bin/prepallman

index c3dd05bf96aef02567aaf0e1a28a4ebc989e2c08..b523ef703ddaeca5eaab52dbef15fbcbfb2b0b2e 100755 (executable)
@@ -3,10 +3,14 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id: /var/cvsroot/gentoo-src/portage/bin/prepallman,v 1.10 2004/10/04 13:56:50 vapier Exp $
 
+ret=0
+
 echo "man:"
 for x in "${D}"opt/*/man "${D}"usr/share/man "${D}"usr/local/man "${D}"usr/X11R6/man ; do
-       if [ -d "${x}" ]
-       then
+       if [[ -d ${x} ]] ; then
                prepman "`echo "${x}" | sed -e "s:${D}::" -e "s:/man[/]*$::"`"
+               ((ret+=$?))
        fi
 done
+
+exit ${ret}