summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--daemon.am4
1 files changed, 3 insertions, 1 deletions
diff --git a/daemon.am b/daemon.am
index 26b07c4105..33e26d1dfe 100644
--- a/daemon.am
+++ b/daemon.am
@@ -175,5 +175,7 @@ TESTS +=					\
   tests/guix-daemon.sh
 
 clean-local:
-	-find "$(GUIX_TEST_ROOT)" | xargs chmod +w
+	-if test -d "$(GUIX_TEST_ROOT)"; then		\
+	  find "$(GUIX_TEST_ROOT)" | xargs chmod +w;	\
+	 fi
 	-rm -rf "$(GUIX_TEST_ROOT)"