From bc41a427792ca39c2986befe964380aa1a951cba Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 24 Oct 2015 13:57:59 +0200 Subject: [PATCH] darcs.eclass: add missing '|| die' on pushd/popd Signed-off-by: Sergei Trofimovich --- eclass/darcs.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2