Bash Defensive Patterns is a specialized skill designed to help developers write safer, more reliable shell scripts for system administration, CI/CD pipelines, and infrastructure automation. It implements the 'Unofficial Bash Strict Mode,' enforces variable quoting, and provides robust patterns for error trapping, temporary file management, and idempotent design. Whether you are building complex deployment scripts or simple utility tools, this skill ensures your shell code can handle edge cases, prevent silent failures, and remain maintainable across different environments and platforms.
주요 기능
01Automatic implementation of Bash Strict Mode (set -Eeuo pipefail)
02Standardized argument parsing and structured logging templates
03Idempotent script design patterns for reliable multi-run execution
04Robust error trapping and cleanup routines using exit signals
050 GitHub stars
06Safe variable and array handling to prevent word splitting and globbing