generated from gematik/spec-TemplateForSimplifierProjects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
validate.sh
executable file
·14 lines (12 loc) · 653 Bytes
/
validate.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
clear
# This script will download the latest validation script from the template source save it
# to the scripts_folder and execute it to validate your fhir ressources.
script_name=downloaded_validation_script.sh
script_path=./scripts/$script_name
parentdir="$(dirname "$script_path")"
mkdir -p "$parentdir"
curl https://raw.githubusercontent.com/gematik/spec-TemplateForSimplifierProjects/master/scripts/$script_name -o $script_path
#curl https://raw.githubusercontent.com/gematik/spec-TemplateForSimplifierProjects/feature/improved_dependencies_for_hapi_call/scripts/$script_name -o $script_path
chmod a+x $script_path
$script_path "$@"