summaryrefslogtreecommitdiffstats
path: root/bin/dodir
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-03-17 21:52:26 +0000
committerMike Frysinger <vapier@gentoo.org>2007-03-17 21:52:26 +0000
commit4505eb2b4855df288327682c646b49c67a94f9ba (patch)
tree6fec51b743f5388765821a630eb8af16cb935e62 /bin/dodir
parent8e92272ca18e7ad9eb381d1138935f024401cf54 (diff)
downloadportage-4505eb2b4855df288327682c646b49c67a94f9ba.tar.gz
portage-4505eb2b4855df288327682c646b49c67a94f9ba.tar.bz2
portage-4505eb2b4855df288327682c646b49c67a94f9ba.zip
make sure we prefix all arguments with $D, including ones that dont start with a /
svn path=/main/trunk/; revision=6240
Diffstat (limited to 'bin/dodir')
-rwxr-xr-xbin/dodir3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/dodir b/bin/dodir
index abf76516b..1902c6f38 100755
--- a/bin/dodir
+++ b/bin/dodir
@@ -3,5 +3,4 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-slash=/
-exec install -d ${DIROPTIONS} "${@/#${slash}/${D}${slash}}"
+exec install -d ${DIROPTIONS} "${@/#/${D}/}"