virtualx.eclass: Add missing die
authorJustin Lecher <jlec@gentoo.org>
Sat, 28 Nov 2015 10:50:15 +0000 (11:50 +0100)
committerJustin Lecher <jlec@gentoo.org>
Mon, 7 Dec 2015 09:11:54 +0000 (10:11 +0100)
Signed-off-by: Justin Lecher <jlec@gentoo.org>
eclass/virtualx.eclass

index 78f5429ef81c10f492f4e89cfe135d61cbc215cd..3df3fe161f22310588e41a618ce3f432c3f6dffb 100644 (file)
@@ -92,9 +92,10 @@ virtualmake() {
        local i=0
        local retval=0
        local OLD_SANDBOX_ON="${SANDBOX_ON}"
-       local XVFB=$(type -p Xvfb)
-       local XHOST=$(type -p xhost)
+       local XVFB XHOST XDISPLAY
        local xvfbargs="-screen 0 1280x1024x24"
+       XVFB=$(type -p Xvfb) || die
+       XHOST=$(type -p xhost) || die
 
        # backcompat for maketype
        if [[ -n ${maketype} ]]; then