#!/bin/bashi=$1if[[-z$AUTH_HEADER]];thenecho"Please provide \$AUTH_HEADER";exit;fiif[[-z$i]];thenecho"Please provide index of result to send"fiecho"Fetching result $i...";curl "http://localhost:5002/results/$i/results.json"-f-o result.json ||{ curl "http://localhost:5002/restart_test/$i"exit;}echo"Sending results $i...";curl 'https://lwc.las3.de/admin/insert-result.php'\-f-H"$AUTH_HEADER"\--data"$(cat result.json)"||exitecho"Sent.";curl "http://localhost:5002/delete_test/$i"