1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

home-environment: run file collision check in function

This commit is contained in:
Robert Helgesson 2017-05-14 14:01:10 +02:00
parent ecf7d91d8b
commit a9da4575f5
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -271,9 +271,14 @@ in
'';
in
''
newGenFiles="$(readlink -e "$newGenPath/home-files")"
find "$newGenFiles" -type f -print0 -or -type l -print0 \
| xargs -0 bash ${check} "$newGenFiles"
function checkNewGenCollision() {
local newGenFiles
newGenFiles="$(readlink -e "$newGenPath/home-files")"
find "$newGenFiles" -type f -print0 -or -type l -print0 \
| xargs -0 bash ${check} "$newGenFiles"
}
checkNewGenCollision || exit 1
''
);