Defensive review for admin shell scripts
Shell Script Admin Safety Reviewer reviews bash, zsh, and sh admin scripts before deployment. It focuses on maintainable fixes for quoting, input handling, permissions, temporary files, logging, and rollout readiness.
What it checks
- Word splitting, globbing, and command substitution mistakes.
- User input, path, and argument validation.
- Root context, sudo usage, umask, ownership, and file permissions.
- Temporary file hygiene, cleanup, and predictable path concerns.
- Logging patterns that may expose sensitive input.
Boundaries
This is a defensive review tool for authorized scripts. Use redacted examples when private values are present. It does not provide unauthorized access guidance.
Output
You get a ready, caution, or hold verdict, line-focused findings, safer replacement snippets, test cases, and rollback notes.