From a6ec88fad8bbdffafe646b6c0d2e0154facf7152 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 25 Feb 2011 10:18:38 -0800 Subject: [PATCH] dodoc: quote ${0} --- bin/ebuild-helpers/4/dodoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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} -- 2.26.2