dodoc: quote ${0}
authorZac Medico <zmedico@gentoo.org>
Fri, 25 Feb 2011 18:18:38 +0000 (10:18 -0800)
committerZac Medico <zmedico@gentoo.org>
Tue, 1 Mar 2011 20:51:40 +0000 (12:51 -0800)
bin/ebuild-helpers/4/dodoc

index 66a1f088b6c6de1afe8a98e3777a1a313573a8f3..617bae2972091fa98e69eae7e895edd828cf734d 100755 (executable)
@@ -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}