summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2015-10-26 18:09:45 +0100
committerJulian Ospald <hasufell@gentoo.org>2015-10-26 18:09:45 +0100
commita8eb4667f5dc47d62dbc23287c9b997e2f14d3c4 (patch)
treef9c7b67174893314a4629d6fa897c9fef2010eb4 /eclass/ruby-fakegem.eclass
parentcmake-utils.eclass: add missing '|| die' on pushd/popd (diff)
downloadgentoo-a8eb4667f5dc47d62dbc23287c9b997e2f14d3c4.tar.gz
gentoo-a8eb4667f5dc47d62dbc23287c9b997e2f14d3c4.tar.bz2
gentoo-a8eb4667f5dc47d62dbc23287c9b997e2f14d3c4.zip
ruby-fakegem.eclass: add missing '|| die' on pushd/popd
Reviewed-By: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'eclass/ruby-fakegem.eclass')
-rw-r--r--eclass/ruby-fakegem.eclass12
1 files changed, 6 insertions, 6 deletions
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass
index ed392b59fe81..7f2b0756896d 100644
--- a/eclass/ruby-fakegem.eclass
+++ b/eclass/ruby-fakegem.eclass
@@ -406,13 +406,13 @@ all_ruby_unpack() {
eend $?
mkdir "${S}"
- pushd "${S}" &>/dev/null
+ pushd "${S}" &>/dev/null || die
ebegin "Unpacking data.tar.gz"
tar -mxf "${my_WORKDIR}"/data.tar.gz || die
eend $?
- popd &>/dev/null
+ popd &>/dev/null || die
;;
*.patch.bz2)
# We apply the patches with RUBY_PATCHES directly from DISTDIR,
@@ -498,9 +498,9 @@ all_fakegem_install() {
for dir in ${RUBY_FAKEGEM_DOCDIR}; do
[[ -d ${dir} ]] || continue
- pushd ${dir} &>/dev/null
+ pushd ${dir} &>/dev/null || die
dohtml -r * || die "failed to install documentation"
- popd &>/dev/null
+ popd &>/dev/null || die
done
fi
@@ -514,12 +514,12 @@ all_fakegem_install() {
local bindir=$(find "${D}" -type d -path "*/gems/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}/bin" -print -quit)
if [[ -d "${bindir}" ]]; then
- pushd "${bindir}" &>/dev/null
+ pushd "${bindir}" &>/dev/null || die
local binaries=$(eval ls ${RUBY_FAKEGEM_BINWRAP})
for binary in $binaries; do
ruby_fakegem_binwrapper $binary
done
- popd &>/dev/null
+ popd &>/dev/null || die
fi
fi
}