Prevent calibration evidence response overwrite
This commit is contained in:
@@ -157,7 +157,8 @@ echo "Output: ${CALIBRATION_EVIDENCE_DIR}"
|
||||
|
||||
while IFS=$'\t' read -r threshold project_id quality_check_id; do
|
||||
threshold_label="$(printf '%s' "${threshold}" | tr '.-' 'pm')"
|
||||
response_path="${CALIBRATION_EVIDENCE_DIR}/threshold_${threshold_label}_evidence_response.json"
|
||||
quality_check_label="$(printf '%s' "${quality_check_id}" | tr -c 'A-Za-z0-9_.-' '_')"
|
||||
response_path="${CALIBRATION_EVIDENCE_DIR}/threshold_${threshold_label}_${quality_check_label}_evidence_response.json"
|
||||
echo "-- Evidence threshold ${threshold}, quality_check_id ${quality_check_id} --"
|
||||
"${CURL_BIN}" -fsS "${BASE_URL%/}/api/v1/projects/${project_id}/quality-checks/${quality_check_id}/evidence/geojson" > "${response_path}"
|
||||
done < "${request_manifest}"
|
||||
|
||||
Reference in New Issue
Block a user