diff options
-rwxr-xr-x | bin/dodir | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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}}" |