intel-sdp.eclass: add missing '|| die' on pushd/popd
authorJulian Ospald <hasufell@gentoo.org>
Mon, 26 Oct 2015 21:35:28 +0000 (22:35 +0100)
committerJulian Ospald <hasufell@gentoo.org>
Mon, 26 Oct 2015 21:35:52 +0000 (22:35 +0100)
Reviewed-By: Justin Lecher <jlec@gentoo.org>
eclass/intel-sdp.eclass

index 13667173de36fe4af4ac429badfc636d2843b1bb..00e52a083e2203f164095a44de246ec13dee504b 100644 (file)
@@ -172,7 +172,7 @@ QA_PREBUILT="${INTEL_SDP_DIR}/*"
 # Creating necessary links to use intel compiler with eclipse
 _isdp_link_eclipse_plugins() {
        local c f
-       pushd ${INTEL_SDP_DIR}/eclipse_support > /dev/null
+       pushd ${INTEL_SDP_DIR}/eclipse_support > /dev/null || die
                for c in cdt*; do
                        local cv=${c#cdt} ev=3.$(( ${cv:0:1} - 1))
                        if has_version "dev-util/eclipse-sdk:${ev}"; then
@@ -189,7 +189,7 @@ _isdp_link_eclipse_plugins() {
                                done
                        fi
                done
-       popd > /dev/null
+       popd > /dev/null || die
 }
 
 # @FUNCTION: _isdp_big-warning