mirror of
https://github.com/nix-community/home-manager
synced 2024-12-27 20:29:47 +01:00
home-manager: handle missing configuration file
Make it look a little nicer than having nix-build emit the error.
This commit is contained in:
parent
b1f84ada60
commit
8ce389ce2a
1 changed files with 5 additions and 0 deletions
|
@ -23,6 +23,11 @@ function doBuild() {
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! -r "$confFile" ]]; then
|
||||
echo "No such configuration file: $1"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
output="$(realpath "$2")"
|
||||
|
||||
if [[ $? -ne 0 ]]; then
|
||||
|
|
Loading…
Reference in a new issue