summaryrefslogtreecommitdiff
path: root/bin/dodir
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/dodir
parentcleanup code and handle errors better as Simon Stelling says in Bug 121317 (diff)
downloadportage-multirepo-78dd6e6fa2e8c228426cdb9a3863d751cec54cd6.tar.gz
portage-multirepo-78dd6e6fa2e8c228426cdb9a3863d751cec54cd6.tar.bz2
portage-multirepo-78dd6e6fa2e8c228426cdb9a3863d751cec54cd6.zip
use much simpler code as inspired by agriffis' fowners work
svn path=/main/trunk/; revision=2655
Diffstat (limited to 'bin/dodir')
-rwxr-xr-xbin/dodir10
1 files changed, 2 insertions, 8 deletions
diff --git a/bin/dodir b/bin/dodir
index ced7ff70..bc4f7f57 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}}"