From cc05de07190e6a00aacc52e6699735176ae1730c Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Wed, 9 Dec 2009 18:18:17 +0000 Subject: [PATCH] avoid cd-ing into ED, which may not exist, omit unnecessary cd at the same time svn path=/main/branches/prefix/; revision=14980 --- bin/ebuild-helpers/prepalldocs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.26.2