home-manager: improve error checking a bit
This commit is contained in:
@@ -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@" \
|
||||
|
||||
Reference in New Issue
Block a user