From ef479b9e61fe23b3d3fa4fdb3f2f9425fe96ef7c Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Wed, 29 Sep 2021 18:58:41 +0200 Subject: [PATCH] bin/clean: fix path detection --- .local/bin/scripts/clean | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/scripts/clean b/.local/bin/scripts/clean index 0201497..71a4261 100755 --- a/.local/bin/scripts/clean +++ b/.local/bin/scripts/clean @@ -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