mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-16 06:18:58 +00:00
obs-packaging: Makefile: Use -prune to delete a directory
make -f .obs-packaging/Makefile clean fails with "No such file or directory" even after deleting the files returned by find. Fix it by using -prune. Fixes: #203 Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
This commit is contained in:
@@ -5,4 +5,4 @@
|
|||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
find . -maxdepth 2 -type d -name '*home:katacontainers*' -exec sudo rm -rf {} \;
|
find . -maxdepth 2 -type d -name '*home:katacontainers*' -prune -exec sudo rm -rf {} \;
|
||||||
|
Reference in New Issue
Block a user