Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion makerules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ ifeq ($(CACHE_DIR),)
CACHE_DIR=$(VAR_DIR)cache/
endif

timestamp := $(shell date --utc +%s)

.PHONY: \
makerules\
Expand Down Expand Up @@ -151,7 +152,7 @@ $(CACHE_DIR)organisation.csv:
ifneq ($(COLLECTION_DATASET_BUCKET_NAME),)
aws s3 cp s3://$(COLLECTION_DATASET_BUCKET_NAME)/organisation-collection/dataset/organisation.csv $(CACHE_DIR)organisation.csv
else
curl -qfs "$(DATASTORE_URL)organisation-collection/dataset/organisation.csv" > $(CACHE_DIR)organisation.csv
curl -qfs "$(DATASTORE_URL)organisation-collection/dataset/organisation.csv?version=$(timestamp)"" > $(CACHE_DIR)organisation.csv
endif

init:: config
Expand Down