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: refuse build if CWD is read-only

This produces a clearer error message than produced by Nix.

Fixes #116.
This commit is contained in:
Robert Helgesson 2017-11-05 19:31:07 +01:00
parent b4f5b5556f
commit 14083a0857
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -113,6 +113,11 @@ function presentNews() {
}
function doBuild() {
if [[ ! -w . ]]; then
errorEcho "Cannot run build in read-only directory";
return 1
fi
local newsInfo
newsInfo=$(buildNews)