Commit
cbb8cf1a0458ba6aceda5358a45dd1ae8f5e88d4
by noreplyfix(scripts/flow/rc): fix RC flow check scripts (#3554)
This pull request introduces updates to the scripts
`check-images-internal.ts` and `check-tiup.ts` to improve version
handling and script execution flow. The changes include adding
version-specific checks for `ticdc` initialization and ensuring proper
script termination when executed directly.
### Updates to version handling:
*
[`scripts/flow/rc/check-images-internal.ts`](diffhunk://#diff-bda2ba3d75043b6dba98a83474bb05cfa4d2a70bc74440c0f32f88ee9c6f6fb9R158-R161):
Added a condition to skip processing `ticdc` for versions earlier than
`v9.0.0`.
(`[scripts/flow/rc/check-images-internal.tsR158-R161](diffhunk://#diff-bda2ba3d75043b6dba98a83474bb05cfa4d2a70bc74440c0f32f88ee9c6f6fb9R158-R161)`)
*
[`scripts/flow/rc/check-tiup.ts`](diffhunk://#diff-0be4c32d0693a4c6b794b5c07c45baa7f15e5e76ffeb8cbe37d9ba30456653b9R223-R226):
Added a condition to skip processing `ticdc` for versions earlier than
`v9.0.0`.
(`[scripts/flow/rc/check-tiup.tsR223-R226](diffhunk://#diff-0be4c32d0693a4c6b794b5c07c45baa7f15e5e76ffeb8cbe37d9ba30456653b9R223-R226)`)
### Improvements to script execution flow:
*
[`scripts/flow/rc/check-images-internal.ts`](diffhunk://#diff-bda2ba3d75043b6dba98a83474bb05cfa4d2a70bc74440c0f32f88ee9c6f6fb9R252-R258):
Added `Deno.exit(0)` to ensure proper script termination when executed
directly and wrapped CLI parameter parsing in an `import.meta.main`
check.
(`[scripts/flow/rc/check-images-internal.tsR252-R258](diffhunk://#diff-bda2ba3d75043b6dba98a83474bb05cfa4d2a70bc74440c0f32f88ee9c6f6fb9R252-R258)`)
*
[`scripts/flow/rc/check-tiup.ts`](diffhunk://#diff-0be4c32d0693a4c6b794b5c07c45baa7f15e5e76ffeb8cbe37d9ba30456653b9R272-R278):
Added `Deno.exit(0)` to ensure proper script termination when executed
directly and wrapped CLI parameter parsing in an `import.meta.main`
check.
(`[scripts/flow/rc/check-tiup.tsR272-R278](diffhunk://#diff-0be4c32d0693a4c6b794b5c07c45baa7f15e5e76ffeb8cbe37d9ba30456653b9R272-R278)`)
(commit: cbb8cf1)