mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 14:40:29 +00:00
files: replace unnecessary use of xargs
This commit is contained in:
parent
a16439e38e
commit
c94eaa0e6c
1 changed files with 4 additions and 4 deletions
|
@ -74,8 +74,8 @@ 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 -print0 -or -type l -print0 \
|
find "$newGenFiles" -type f -or -type l \
|
||||||
| xargs -0 bash ${check} "$newGenFiles"
|
-exec bash ${check} "$newGenFiles" {} +
|
||||||
}
|
}
|
||||||
|
|
||||||
checkNewGenCollision || exit 1
|
checkNewGenCollision || exit 1
|
||||||
|
@ -155,8 +155,8 @@ in
|
||||||
|
|
||||||
local newGenFiles
|
local newGenFiles
|
||||||
newGenFiles="$(readlink -e "$newGenPath/home-files")"
|
newGenFiles="$(readlink -e "$newGenPath/home-files")"
|
||||||
find "$newGenFiles" -type f -print0 -or -type l -print0 \
|
find "$newGenFiles" -type f -or -type l \
|
||||||
| xargs -0 bash ${link} "$newGenFiles"
|
-exec bash ${link} "$newGenFiles" {} +
|
||||||
}
|
}
|
||||||
|
|
||||||
function cleanOldGen() {
|
function cleanOldGen() {
|
||||||
|
|
Loading…
Reference in a new issue