1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

home-manager: check output path

In particular, error out if the output path already exists.
This commit is contained in:
Robert Helgesson 2017-01-14 13:02:58 +01:00
parent d02f8b17ef
commit e0a37be515
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -11,6 +11,11 @@ function doBuild() {
exit 1
fi
if [[ -e "$2" ]]; then
echo "The output path $2 already exists."
exit 1
fi
local confFile output
confFile="$(realpath "$1")"
output="$(realpath "$2")"