commit:     80c3b2106c7f9c6184ea8a230b328364c8cfc1d0
Author:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 23 14:23:34 2015 +0000
Commit:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
CommitDate: Tue Nov 24 21:56:29 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80c3b210

xdg-utils.eclass: add missing die

 eclass/xdg-utils.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/xdg-utils.eclass b/eclass/xdg-utils.eclass
index 1f97623..e8dacff 100644
--- a/eclass/xdg-utils.eclass
+++ b/eclass/xdg-utils.eclass
@@ -54,10 +54,10 @@ xdg_environment_reset() {
        export XDG_CACHE_HOME="${T}/.cache"
        export XDG_RUNTIME_DIR="${T}/run"
        mkdir -p "${XDG_DATA_HOME}" "${XDG_CONFIG_HOME}" "${XDG_CACHE_HOME}" \
-               "${XDG_RUNTIME_DIR}"
+               "${XDG_RUNTIME_DIR}" || die
        # This directory needs to be owned by the user, and chmod 0700
        # http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
-       chmod 0700 "${XDG_RUNTIME_DIR}"
+       chmod 0700 "${XDG_RUNTIME_DIR}" || die
 
        unset DBUS_SESSION_BUS_ADDRESS
 }

Reply via email to