Module: check_mk
Branch: master
Commit: f59f7df4a3f5f17fe83b4585ece57f9c83de749d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f59f7df4a3f5f1…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Oct 26 15:59:07 2018 +0200
Fixed race condition.
Change-Id: If630777722a2f83add9568ef7ca97f1a682cde45
---
omd/packages/python/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/omd/packages/python/Makefile b/omd/packages/python/Makefile
index bf21075..f371e5c 100644
--- a/omd/packages/python/Makefile
+++ b/omd/packages/python/Makefile
@@ -62,7 +62,7 @@ bin/gcc:
echo "no"; IFS=$$SAVED_IFS ; \
done ; \
test -z "$$CC" && { echo "error: no C compiler found"
>&2 ; exit 1; } ; \
- test -d bin || mkdir bin ; \
+ mkdir -p bin ; \
rm -f bin/gcc ; \
ln -s "$$CC" bin/gcc
@@ -79,7 +79,7 @@ bin/g++:
echo "no"; IFS=$$SAVED_IFS ; \
done ; \
test -z "$$CXX" && { echo "error: no C++ compiler found"
>&2 ; exit 1; } ; \
- test -d bin || mkdir bin ; \
+ mkdir -p bin ; \
rm -f bin/g++ ; \
ln -s "$$CXX" bin/g++