summaryrefslogtreecommitdiffstats
path: root/bin/dodir
diff options
context:
space:
mode:
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 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}}"