From: Zac Medico Date: Fri, 25 Feb 2011 18:18:38 +0000 (-0800) Subject: dodoc: quote ${0} X-Git-Tag: v2.2.0_alpha26~17 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=009ccb0caebe50da76a71deea824696c2acd2561;p=portage.git dodoc: quote ${0} --- diff --git a/bin/ebuild-helpers/4/dodoc b/bin/ebuild-helpers/4/dodoc index 66a1f088b..617bae297 100755 --- a/bin/ebuild-helpers/4/dodoc +++ b/bin/ebuild-helpers/4/dodoc @@ -35,7 +35,7 @@ for x in "$@" ; do find "${x}" -mindepth 1 -maxdepth 1 -exec \ env \ _E_DOCDESTTREE_="$(basename "${x}")" \ - ${0} -r {} \; + "${0}" -r {} \; elif [ -s "${x}" ] ; then install -m0644 "${x}" "${dir}" || ((ret|=1)) @@ -46,5 +46,5 @@ for x in "$@" ; do done -[[ $ret -ne 0 ]] && die "$0 failed" +[[ $ret -ne 0 ]] && die "${0##*/} failed" exit ${ret}