summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/core/http_prebuilt.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/build/core/http_prebuilt.mk b/build/core/http_prebuilt.mk
index 9dc3975..4d7556a 100644
--- a/build/core/http_prebuilt.mk
+++ b/build/core/http_prebuilt.mk
@@ -47,11 +47,13 @@ define curl-checksum
endef
define audit-checksum
- @echo "Downloading: $(filename) (version $(version))" -> $(filepath);
$(hide) if [ ! -f $(filepath) ]; then \
+ echo "Downloading: $(filename) (version $(version)) -> $(filepath)"; \
$(call download-prebuilt-module, $(HTTP_FILE_URL),$(filepath)) \
else \
- if [ "$(shell echo $(md5sum $(filepath)))" != "$(shell cat $(checksum) | cut -d ' ' -f1)" ]; then \
+ temp_checksum=$(shell md5sum $(filepath) | cut -d ' ' -f1); \
+ if [ "$$temp_checksum" != "$(shell cat $(checksum) | cut -d ' ' -f1)" ]; then \
+ echo "Downloading: $(filename) (version $(version)) -> $(filepath)"; \
rm -rf $(filepath); \
$(call download-prebuilt-module, $(HTTP_FILE_URL),$(filepath)) \
fi; \