From: Fabian Groffen Date: Wed, 9 Dec 2009 18:18:17 +0000 (-0000) Subject: avoid cd-ing into ED, which may not exist, omit unnecessary cd at the same time X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=cc05de07190e6a00aacc52e6699735176ae1730c;p=portage.git avoid cd-ing into ED, which may not exist, omit unnecessary cd at the same time svn path=/main/branches/prefix/; revision=14980 --- diff --git a/bin/ebuild-helpers/prepalldocs b/bin/ebuild-helpers/prepalldocs index 6dbdaa848..938b82038 100755 --- a/bin/ebuild-helpers/prepalldocs +++ b/bin/ebuild-helpers/prepalldocs @@ -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