From 5fb1382456acf02dc0f315ed3be77e65575a5e93 Mon Sep 17 00:00:00 2001 From: Sandro Tosi Date: Mon, 30 Mar 2015 23:03:51 +0100 Subject: [PATCH] use -prune find option when removing __pycache__ dirs find tries to descend to the directory that has just been deleted, prune fix it Closes: https://github.com/pmatiello/python-graph/issues/118 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c2299a4..8040d1b 100644 --- a/Makefile +++ b/Makefile @@ -88,7 +88,7 @@ console3: cleanpyc: find . -name *.pyc -exec rm {} \; - find . -name __pycache__ -exec rm -rf {} \; + find . -name __pycache__ -exec rm -rf {} \; -prune clean: cleanpyc rm -rf ${DOCS_DIR}