From: Julian Ospald Date: Sat, 24 Oct 2015 11:57:59 +0000 (+0200) Subject: darcs.eclass: add missing '|| die' on pushd/popd X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=bc41a427792ca39c2986befe964380aa1a951cba;p=gentoo.git darcs.eclass: add missing '|| die' on pushd/popd Signed-off-by: Sergei Trofimovich --- diff --git a/eclass/darcs.eclass b/eclass/darcs.eclass index 1fc1b28b0521..abb9ccc9b092 100644 --- a/eclass/darcs.eclass +++ b/eclass/darcs.eclass @@ -126,7 +126,7 @@ darcs_fetch() { # in case EDARCS_DARCS_DIR is a symlink to a dir, get the real # dir's path, otherwise addwrite() doesn't work. - pushd . + pushd . || die cd -P "${EDARCS_TOP_DIR}" > /dev/null EDARCS_TOP_DIR="`/bin/pwd`" @@ -159,7 +159,7 @@ darcs_fetch() { export EDARCS_PATCHCOUNT=$(darcs_patchcount) einfo " patches in repo: ${EDARCS_PATCHCOUNT}" - popd + popd || die } # @FUNCTION: darcs_src_unpack