bin/clean: fix path detection
This commit is contained in:
parent
997597f242
commit
ef479b9e61
|
@ -34,10 +34,10 @@ fi
|
||||||
highlight "d to recursively remove development caches"
|
highlight "d to recursively remove development caches"
|
||||||
if [[ $1 =~ "d" ]]; then
|
if [[ $1 =~ "d" ]]; then
|
||||||
find -name "src" -prune -o \
|
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
|
-print -exec rm -r {} + -prune
|
||||||
echo -n " " && highlight "build directories"
|
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 \
|
-o -name "build" -type d \
|
||||||
-print -exec rm -rI {} + -prune
|
-print -exec rm -rI {} + -prune
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue