summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-04 05:59:18 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-04 05:59:18 +0000
commit78dd6e6fa2e8c228426cdb9a3863d751cec54cd6 (patch)
tree3eaea6fc4c386dbe830d2729a78c3305d86bc19b /bin
parent349beefedf261a4e7a98790f4bc0bfde09f5dd1c (diff)
downloadportage-78dd6e6fa2e8c228426cdb9a3863d751cec54cd6.tar.gz
portage-78dd6e6fa2e8c228426cdb9a3863d751cec54cd6.tar.bz2
portage-78dd6e6fa2e8c228426cdb9a3863d751cec54cd6.zip
use much simpler code as inspired by agriffis' fowners work
svn path=/main/trunk/; revision=2655
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dodir10
1 files 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}}"