mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
improve find command
This commit is contained in:
parent
a06fe894c9
commit
01661e9bba
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[ "$(id -u)" = "0" ] && echo "This script should not be run as root" >&2 && exit 1
|
[ "$(id -u)" = "0" ] && echo "This script should not be run as root" >&2 && exit 1
|
||||||
|
|
||||||
find . -depth -type d -path '*/.*' -prune -o -print0 | xargs -0 -P 0 -I {} dash -c '
|
find . -depth \( -path '*/.*' -o -path '*/.*/*' \) -prune -o \( -type f -o -type d \) -print0 | xargs -0 -P 0 -I {} dash -c '
|
||||||
|
|
||||||
base="${1##*/}"
|
base="${1##*/}"
|
||||||
path="${1%/*}"
|
path="${1%/*}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user