Simplfy rm matching pattern, thanks to cypherpunks@mailinator.com
This commit is contained in:
parent
dea9e11a69
commit
cba9f12715
@ -32,7 +32,7 @@ cleanup_tmp_dir()
|
|||||||
[ "${RC_UNAME}" = Linux ] && startopts=". -xdev -depth"
|
[ "${RC_UNAME}" = Linux ] && startopts=". -xdev -depth"
|
||||||
|
|
||||||
# Faster than find
|
# Faster than find
|
||||||
rm -rf -- [b-ikm-pr-zA-Z0-9\.]*
|
rm -rf -- [^ajlq\.]*
|
||||||
|
|
||||||
find ${startopts} ! -name . \
|
find ${startopts} ! -name . \
|
||||||
! -path "./lost+found" \
|
! -path "./lost+found" \
|
||||||
|
Loading…
Reference in New Issue
Block a user