1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-01 00:39:45 +01:00

home-manager: improve error checking a bit

This commit is contained in:
Robert Helgesson 2017-01-15 21:07:39 +01:00
parent ed81b6848e
commit e0fd58709c
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -18,8 +18,17 @@ function doBuild() {
local confFile output local confFile output
confFile="$(realpath "$1")" confFile="$(realpath "$1")"
if [[ $? -ne 0 ]]; then
exit 1
fi
output="$(realpath "$2")" output="$(realpath "$2")"
if [[ $? -ne 0 ]]; then
exit 1
fi
nix-build --show-trace \ nix-build --show-trace \
"@HOME_MANAGER_EXPR_PATH@" \ "@HOME_MANAGER_EXPR_PATH@" \
--argstr modulesPath "@MODULES_PATH@" \ --argstr modulesPath "@MODULES_PATH@" \