Skip to content

Commit

Permalink
fix: repair find -delete skip paths
Browse files Browse the repository at this point in the history
because `find ... -delete` overrides `-prune` behavior

Signed-off-by: Lucas Larson <[email protected]>
  • Loading branch information
LucasLarson committed Apr 25, 2024
1 parent 4fb8c3f commit d130550
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,12 @@ command -p -- find -- . \
# and those with specific names
command -p -- find -- . \
-size 0 \
-path "${DOTFILES-}"'/Library' -prune -o \
-path "${HOME%/}"'/Library' -prune -o \
-path '*/.git' -prune -o \
-path '*/Test*' -prune -o \
-path '*/test*' -prune -o \
-path '*/.well-known' -prune -o \
! -path "${DOTFILES-}"'/Library/*' \
! -path "${HOME%/}"'/Library/*' \
! -path '*/.git/*' \
! -path '*/Test*' \
! -path '*/test*' \
! -path '*/.well-known/*' \
! -name "$(command -p -- printf -- 'Icon\015\012')" \
! -name '*LOCK' \
! -name '*empty*' \
Expand Down

0 comments on commit d130550

Please sign in to comment.