mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
files: fix find
invocation broken in c94eaa0e
Add parens to expression so the `-exec` includes files matching both. Otherwise (before this change) the `-exec` is only invoked for links (`-type l`): file or (link -> doexec) => (file or link) -> doexec
This commit is contained in:
parent
f18e2933d4
commit
f56256f488
1 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ in
|
||||||
function checkNewGenCollision() {
|
function checkNewGenCollision() {
|
||||||
local newGenFiles
|
local newGenFiles
|
||||||
newGenFiles="$(readlink -e "$newGenPath/home-files")"
|
newGenFiles="$(readlink -e "$newGenPath/home-files")"
|
||||||
find "$newGenFiles" -type f -or -type l \
|
find "$newGenFiles" \( -type f -or -type l \) \
|
||||||
-exec bash ${check} "$newGenFiles" {} +
|
-exec bash ${check} "$newGenFiles" {} +
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ in
|
||||||
|
|
||||||
local newGenFiles
|
local newGenFiles
|
||||||
newGenFiles="$(readlink -e "$newGenPath/home-files")"
|
newGenFiles="$(readlink -e "$newGenPath/home-files")"
|
||||||
find "$newGenFiles" -type f -or -type l \
|
find "$newGenFiles" \( -type f -or -type l \) \
|
||||||
-exec bash ${link} "$newGenFiles" {} +
|
-exec bash ${link} "$newGenFiles" {} +
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue