mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
home-manager: improve error checking a bit
This commit is contained in:
parent
ed81b6848e
commit
e0fd58709c
1 changed files with 9 additions and 0 deletions
|
@ -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@" \
|
||||
|
|
Loading…
Reference in a new issue