xdg-utils.eclass: add missing die
authorGilles Dartiguelongue <eva@gentoo.org>
Mon, 23 Nov 2015 14:23:34 +0000 (15:23 +0100)
committerGilles Dartiguelongue <eva@gentoo.org>
Tue, 24 Nov 2015 21:56:29 +0000 (22:56 +0100)
eclass/xdg-utils.eclass

index 1f97623cbfd574da94386341197d3eaa857b27ac..e8dacff2ba9d4a7cc85e2b8df2f281cc24e546e1 100644 (file)
@@ -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
 }