From eab72ef16a6ec7fc76aa746d5604b9ddd8354b3c Mon Sep 17 00:00:00 2001 From: Dan Levitas Date: Mon, 29 Jul 2024 18:31:04 +0000 Subject: [PATCH] [ENH] update telemetry --- handler/bids.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/handler/bids.sh b/handler/bids.sh index 79bec9b..f78d1fb 100755 --- a/handler/bids.sh +++ b/handler/bids.sh @@ -38,4 +38,14 @@ echo "Creating ezBIDS telemetry files" ./telemetry.py $root # Telemetry (to hard-coded pet2bids server) -curl -H 'Content-Type: application/json' -d @$root/validator.json -X POST http://52.87.154.236/telemetry/ \ No newline at end of file +if [ -f $root/validator.json ]; then + curl -H 'Content-Type: application/json' -d @$root/validator.json -X POST http://52.87.154.236/telemetry/ +fi + +if [ -f $root/ezBIDS_core_telemetry.json ]; then + curl -H 'Content-Type: application/json' -d @$root/ezBIDS_core_telemetry.json -X POST http://52.87.154.236/telemetry/ +fi + +if [ -f $root/ezBIDS_finalized_telemetry.json ]; then + curl -H 'Content-Type: application/json' -d @$root/ezBIDS_finalized_telemetry.json -X POST http://52.87.154.236/telemetry/ +fi \ No newline at end of file