From db3171a51c8ec7044b55a677ae7d1523ed7b017b Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Tue, 26 Oct 2021 03:29:38 +0000 Subject: [PATCH] feat: Refer to example files recursively (#129) Will help with putting examples in other directories. Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- validate.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/validate.sh b/validate.sh index 05099a60..ff90c42e 100755 --- a/validate.sh +++ b/validate.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o errexit -o nounset -shopt -s failglob +shopt -s failglob globstar validator_command=( node_modules/.bin/stac-node-validator @@ -13,4 +13,5 @@ validator_command=( --schemaMap=https://linz.github.io/stac/_STAC_VERSION_/quality/schema.json=extensions/quality/schema.json --schemaMap=https://linz.github.io/stac/_STAC_VERSION_/linz/schema.json=extensions/linz/schema.json ) -"${validator_command[@]}" extensions/*/examples/*.json + +"${validator_command[@]}" ./**/examples/*.json