bin/clean: fix path detection

This commit is contained in:
xeruf 2021-09-29 18:58:41 +02:00
parent 997597f242
commit ef479b9e61
1 changed files with 2 additions and 2 deletions

View File

@ -34,10 +34,10 @@ fi
highlight "d to recursively remove development caches"
if [[ $1 =~ "d" ]]; then
find -name "src" -prune -o \
-type d \( -name ".gradle" -o -name "generated" -o -name "dist-newstyle" -o -name "cache" -o -name "node_modules" -name "cmake_build" \) \
-type d \( -name ".gradle" -o -name "generated" -o -name "dist-newstyle" -o -name "cache" -o -name "node_modules" -o -name "cmake_build" \) \
-print -exec rm -r {} + -prune
echo -n " " && highlight "build directories"
find \( -name ".git" -o -path "*/mixxx/build" -o -name "Leaflet" \) -prune \
find \( -name ".git" -o -path "*/mixxx/build" -o -name "Leaflet" -o -name "www" -o -name "src" \) -prune \
-o -name "build" -type d \
-print -exec rm -rI {} + -prune
fi