[developers-reference] 01/01: Use mkdir -p instead of ignoring mkdir exit codes
This is an automated email from the git hooks/post-receive script.
pabs pushed a commit to branch master
in repository developers-reference.
commit 87211e037bcc4a068bc4640521b1718cfce29049
Author: Paul Wise <pabs@debian.org>
Date: Mon Jan 2 12:06:14 2017 +0800
Use mkdir -p instead of ignoring mkdir exit codes
Properly errors out when the directory cannot be created.
Properly does not give an error when the directory exists.
Fixes: ec242bbcad6b2c6b8b557a67b3146929870ecdf7
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 4903f79..5ca63b9 100644
--- a/Makefile
+++ b/Makefile
@@ -53,7 +53,7 @@ validate: $(SOURCES)
.PHONY: css
css:
- -mkdir $(CURDIR)/images
+ mkdir -p $(CURDIR)/images
cd $(DIMG) && cp caution.png important.png note.png tip.png up.gif warning.png $(CURDIR)/images
cd $(CURDIR)/pngfile && cp *.png $(CURDIR)/images
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/developers-reference.git
Reply to: