Datasets:
AutoOntologyBench / source_data /pinned /gatekeeper-library /commit-a8d4799d8daf /scripts /require-suites.sh
Download source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/require-suites.sh from Vinyeh/AutoOntologyBench: direct link, hf CLI and curl.
- Browser
- Download file 517 Bytes
-
https://huggingface.co/datasets/Vinyeh/AutoOntologyBench/resolve/main/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/require-suites.sh
- Command line
-
hf download hf://datasets/Vinyeh/AutoOntologyBench/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/require-suites.sh
-
curl -L -o require-suites.sh https://huggingface.co/datasets/Vinyeh/AutoOntologyBench/resolve/main/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/scripts/require-suites.sh
517 Bytes
| # Look in the library and find every `template.yaml` file | |
| TEMPLATE_PATHS=$(find . -name "*template.yaml") | |
| FAILURE=false | |
| for path in $TEMPLATE_PATHS; do | |
| # cut off the filename | |
| dir=$(dirname "$path") | |
| # the suite.yaml should be in the exact same directory as the template.yaml | |
| suite_path="${dir}/suite.yaml" | |
| if ! [[ -s "$suite_path" ]]; then | |
| printf " > ERROR: Directory '%s' must contain a non-empty suite.yaml file\n" "$dir" | |
| FAILURE=true | |
| fi | |
| done | |
| if "$FAILURE"; then | |
| exit 1 | |
| fi | |