From e0fd58709cde87094b4ff57e80e2d3a730f74e69 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sun, 15 Jan 2017 21:07:39 +0100 Subject: [PATCH] home-manager: improve error checking a bit --- home-manager/home-manager | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/home-manager/home-manager b/home-manager/home-manager index 1c6246811..380a2fa0a 100644 --- a/home-manager/home-manager +++ b/home-manager/home-manager @@ -18,8 +18,17 @@ function doBuild() { local confFile output confFile="$(realpath "$1")" + + if [[ $? -ne 0 ]]; then + exit 1 + fi + output="$(realpath "$2")" + if [[ $? -ne 0 ]]; then + exit 1 + fi + nix-build --show-trace \ "@HOME_MANAGER_EXPR_PATH@" \ --argstr modulesPath "@MODULES_PATH@" \