avoid cd-ing into ED, which may not exist, omit unnecessary cd at the same time
authorFabian Groffen <grobian@gentoo.org>
Wed, 9 Dec 2009 18:18:17 +0000 (18:18 -0000)
committerFabian Groffen <grobian@gentoo.org>
Wed, 9 Dec 2009 18:18:17 +0000 (18:18 -0000)
svn path=/main/branches/prefix/; revision=14980

bin/ebuild-helpers/prepalldocs

index 6dbdaa848fdf28b515b4b6be03123631e58d40a6..938b82038558b553eb5b9097caa5a15a1eb41a64 100755 (executable)
@@ -9,8 +9,7 @@ if [[ -n $1 ]] ; then
        vecho "${0##*/}: invalid usage; takes no arguments" 1>&2
 fi
 
-cd "${ED}"
-[[ -d usr/share/doc ]] || exit 0
+[[ -d "${ED}"/usr/share/doc ]] || exit 0
 
 ecompressdir --ignore /usr/share/doc/${PF}/html
 ecompressdir --queue /usr/share/doc