1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-01 20:43:34 +02:00

files: replace unnecessary use of xargs

This commit is contained in:
Robert Helgesson 2019-04-27 13:48:57 +02:00
parent a16439e38e
commit c94eaa0e6c
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -74,8 +74,8 @@ in
function checkNewGenCollision() {
local newGenFiles
newGenFiles="$(readlink -e "$newGenPath/home-files")"
find "$newGenFiles" -type f -print0 -or -type l -print0 \
| xargs -0 bash ${check} "$newGenFiles"
find "$newGenFiles" -type f -or -type l \
-exec bash ${check} "$newGenFiles" {} +
}
checkNewGenCollision || exit 1
@ -155,8 +155,8 @@ in
local newGenFiles
newGenFiles="$(readlink -e "$newGenPath/home-files")"
find "$newGenFiles" -type f -print0 -or -type l -print0 \
| xargs -0 bash ${link} "$newGenFiles"
find "$newGenFiles" -type f -or -type l \
-exec bash ${link} "$newGenFiles" {} +
}
function cleanOldGen() {