From f4470cc7908cfc828f12b48032382468e8ca7a7c Mon Sep 17 00:00:00 2001 From: Amir Masoud Abdol Date: Wed, 13 Apr 2022 17:11:46 +0200 Subject: [PATCH] `-delete` cannot delete the directories, back to `-exec rm -rf {} \;` --- Tools/macOS/Cleaner.sh.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tools/macOS/Cleaner.sh.in b/Tools/macOS/Cleaner.sh.in index 954bf362a2..d38f968789 100644 --- a/Tools/macOS/Cleaner.sh.in +++ b/Tools/macOS/Cleaner.sh.in @@ -6,13 +6,13 @@ # If you wish to remove something from the App Bundle and you cannot # use the EXLUDE lists for whatever reason, you can put it here. -find @JASP_INSTALL_PREFIX@/Contents/ -name "*dSYM*" -delete -find @JASP_INSTALL_PREFIX@/Contents/ -type f -name "*.entitlements" -delete +find @JASP_INSTALL_PREFIX@/Contents/ -name "*dSYM*" -exec rm -rf {} \; +find @JASP_INSTALL_PREFIX@/Contents/ -type f -name "*.entitlements" -exec rm -rf {} \; # For some reason, `-path` doesn't work with the full path cd @JASP_INSTALL_PREFIX@/Contents/Modules/ -find renv-cache -path "*help*" -not -path "*/jasp*/help*" -delete -# find renv-cache -path "*po*" -not -path "*/jasp*/po*" -delete +find renv-cache -path "*help*" -not -path "*/jasp*/help*" -exec rm -rf {} \; +# find renv-cache -path "*po*" -not -path "*/jasp*/po*" -exec rm -rf {} \; cd ../../../ rm -rf @JASP_INSTALL_PREFIX@/Contents/Frameworks/Resources/opt/R/arm64/bin/gfortran \ No newline at end of file