Files
openfoodnetwork/engines/dfc_provider/script/update-dfc-vocabularies
Maikel Linke 6e34c41f42 Bump DFC taxonomies to v1.0.2
Finally replacing the last of the old DFC context URLs that are not
valid any more.
2023-11-16 15:52:31 +11:00

12 lines
329 B
Bash
Executable File

#!/bin/sh
set -e
src="https://github.com/datafoodconsortium/taxonomies/releases/latest/download"
dst="`dirname $0`/../vendor"
mkdir -p "$dst"
curl --location "$src/facets.json" > "$dst/facets.json"
curl --location "$src/measures.json" > "$dst/measures.json"
curl --location "$src/productTypes.json" > "$dst/productTypes.json"