kde4-functions.eclass: add missing '|| die' on pushd/popd
authorJulian Ospald <hasufell@gentoo.org>
Sat, 24 Oct 2015 11:59:34 +0000 (13:59 +0200)
committerMichael Palimaka <kensington@gentoo.org>
Mon, 26 Oct 2015 17:20:00 +0000 (04:20 +1100)
eclass/kde4-functions.eclass

index 133fd264b84157c94e2ff53f1eaf7a4f94e7f979..d2fd060c80a32a2f1d510860b0f70a710ae41cb1 100644 (file)
@@ -351,7 +351,7 @@ _enable_selected_linguas_dir() {
 
        [[ -d  ${dir} ]] || die "linguas dir \"${dir}\" does not exist"
        comment_all_add_subdirectory "${dir}"
-       pushd "${dir}" > /dev/null
+       pushd "${dir}" > /dev/null || die
 
        # fix all various crazy sr@Latn variations
        # this part is only ease for ebuilds, so there wont be any die when this
@@ -390,7 +390,7 @@ _enable_selected_linguas_dir() {
        done
        [[ -n ${linguas} ]] && echo ">>> Enabling languages: ${linguas}"
 
-       popd > /dev/null
+       popd > /dev/null || die
 }
 
 # @FUNCTION: get_kde_version