File: pull-static

package info (click to toggle)
pystac 1.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 19,904 kB
  • sloc: python: 24,370; makefile: 124; sh: 7
file content (11 lines) | stat: -rwxr-xr-x 323 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

set -e

VERSION="1.5.0"
SRC="https://cdn.jsdelivr.net/npm/@radiantearth/stac-fields@$VERSION/fields-normalized.json"
HERE=$(dirname "$0")
DEST=$(dirname "$HERE")/pystac/static/fields-normalized.json

echo "Pulling fields-normalized.json from cdn to $DEST"
curl "$SRC" | jq -c '{metadata: .metadata}' > "$DEST"