aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2019-04-30 07:52:44 -0500
committerRobert Helgesson <robert@rycee.net>2019-04-30 15:07:47 +0200
commitf56256f4883f941028a7f08ecaae939232406c65 (patch)
treec37b3ca4aa0518a7977553fff059fa9fe62aa16d /modules
parentf18e2933d485d1d93d399b9637e26a0de1510747 (diff)
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
Diffstat (limited to 'modules')
-rw-r--r--modules/files.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/files.nix b/modules/files.nix
index 46e796ed1c5..0e8297f795d 100644
--- a/modules/files.nix
+++ b/modules/files.nix
@@ -74,7 +74,7 @@ in
function checkNewGenCollision() {
local newGenFiles
newGenFiles="$(readlink -e "$newGenPath/home-files")"
- find "$newGenFiles" -type f -or -type l \
+ find "$newGenFiles" \( -type f -or -type l \) \
-exec bash ${check} "$newGenFiles" {} +
}
@@ -155,7 +155,7 @@ in
local newGenFiles
newGenFiles="$(readlink -e "$newGenPath/home-files")"
- find "$newGenFiles" -type f -or -type l \
+ find "$newGenFiles" \( -type f -or -type l \) \
-exec bash ${link} "$newGenFiles" {} +
}