This checklist is the pre-merge review for any shell script that will run in production — whether in a cron entry, a systemd timer, a CI pipeline, or a configuration-management run. Run it before the script reaches a production host for the first time.
Procedure
For each item:
- Read the requirement.
- Confirm the script satisfies it. If not, fix or document the exception.
- For automated checks, run the listed command and confirm the expected output.
The critical items are non-negotiable. A script missing any of them should not reach production until the gap is closed. Warnings should be addressed or explicitly justified in the pull request.
Approval
Every script merged to production should have:
- A peer review confirming this checklist passes.
- ShellCheck green at the configured severity in CI.
- A test fixture that exercises the script against representative input, with assertions on the output.
- A runbook entry for the operational procedure, if the script is part of an incident response.