From 78dd6e6fa2e8c228426cdb9a3863d751cec54cd6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 4 Feb 2006 05:59:18 +0000 Subject: [PATCH] use much simpler code as inspired by agriffis' fowners work svn path=/main/trunk/; revision=2655 --- bin/dodir | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/bin/dodir b/bin/dodir index ced7ff70f..bc4f7f579 100755 --- a/bin/dodir +++ b/bin/dodir @@ -3,11 +3,5 @@ # Distributed under the terms of the GNU General Public License v2 # $Id: /var/cvsroot/gentoo-src/portage/bin/dodir,v 1.5 2004/10/04 13:56:50 vapier Exp $ -ret=0 - -for x in "$@" ; do - install -d ${DIROPTIONS} "${D}${x}" - ((ret+=$?)) -done - -exit ${ret} +slash=/ +exec install -d ${DIROPTIONS} "${@/#${slash}/${D}${slash}}" -- 2.26.2