We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e55750 commit c4b10f8Copy full SHA for c4b10f8
1 file changed
scripts/perf_latency_probe.sh
@@ -176,7 +176,8 @@ if [[ "${REQUIRE_MIN_STAGE_SAMPLES}" == "1" ]]; then
176
echo "No latency snapshot data available at probe end."
177
exit 4
178
fi
179
- if ! JSON_PAYLOAD="${LATEST_JSON}" python3 - "$MIN_STAGE_SAMPLES" <<'PY'
+ py_rc=0
180
+ JSON_PAYLOAD="${LATEST_JSON}" python3 - "$MIN_STAGE_SAMPLES" <<'PY' || py_rc=$?
181
import json
182
import os
183
import sys
@@ -205,8 +206,8 @@ if missing:
205
206
print(f"- {item}")
207
raise SystemExit(4)
208
PY
- then
209
- exit $?
+ if [[ "${py_rc}" -ne 0 ]]; then
210
+ exit "${py_rc}"
211
212
213
0 commit comments