Simplfy rm matching pattern, thanks to cypherpunks@mailinator.com

This commit is contained in:
Roy Marples 2009-04-12 12:59:00 +00:00
parent dea9e11a69
commit cba9f12715

View File

@ -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" \