ref #4227 Fix file deletion in setup-project.sh
authorPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 18 Feb 2019 12:51:23 +0000 (13:51 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 18 Feb 2019 12:55:02 +0000 (13:55 +0100)
setup-project.sh

index 709386e2a50f7eab9afae9ce8d59b40ff6dce38b..66bf3b3eab860acf500a0b944304ac6b5d34c79e 100755 (executable)
@@ -4,8 +4,8 @@ echo -n "Clear eclipse project? [y,N]"
 read choice
 
 if [ "$choice" == "y" ]; then
-       find -type f -name ".classpath" -or -name ".project" -prune -exec rm -f {} \;
-       find -type d -name ".settings" -prune -exec rm -rf {} \;
+       find . -type f \( -name ".classpath" -o -name "*.project" \) -prune -exec rm -f {} \;
+       find -type d -name ".settings" -prune -exec rm -rf {} \;
 fi
 
 echo -n "Use the local repo? [y,N]"