summaryrefslogtreecommitdiff
path: root/ct-ng.in
diff options
context:
space:
mode:
Diffstat (limited to 'ct-ng.in')
-rw-r--r--ct-ng.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/ct-ng.in b/ct-ng.in
index bbd7b62..699d045 100644
--- a/ct-ng.in
+++ b/ct-ng.in
@@ -172,5 +172,6 @@ distclean:: clean
@$(ECHO) " CLEAN .config"
$(SILENT)rm -f .config .config.* ..config*
@$(ECHO) " CLEAN build dir"
- $(SILENT)chmod -R u+w targets .build
+ $(SILENT)[ ! -d targets ] || chmod -R u+w targets
+ $(SILENT)[ ! -d .build ] || chmod -R u+w .build
$(SILENT)rm -rf targets .build