Skip to content

Commit d20ca74

Browse files
Nathan Gillettcursoragent
andcommitted
fix: add backward-compatible fallbacks for spec script renames
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 007fda7 commit d20ca74

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

scripts/check-no-handwritten-model-types.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@ if [[ -z "${spec_root}" ]]; then
1919
fi
2020
fi
2121

22-
if [[ -z "${spec_root}" || ! -f "${spec_root}/scripts/check-sdk-no-handwritten-model-types.sh" ]]; then
22+
if [[ -z "${spec_root}" ]]; then
2323
echo "check-no-handwritten-model-types: intentproof-spec checkout not found (set INTENTPROOF_SPEC_ROOT or clone ../intentproof-spec)" >&2
2424
exit 1
2525
fi
2626

27+
if [[ -f "${spec_root}/scripts/check-consumer-no-handwritten-model-types.sh" ]]; then
28+
exec bash "${spec_root}/scripts/check-consumer-no-handwritten-model-types.sh" "${sdk_root}"
29+
fi
30+
31+
# Backward compatibility for older pinned spec commits (pre-consumer script rename).
2732
exec bash "${spec_root}/scripts/check-sdk-no-handwritten-model-types.sh" "${sdk_root}"

0 commit comments

Comments
 (0)