mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-11 02:33:51 +08:00
fix: Lower Bash version requirement from 4.0 to 2.0
Based on Gemini analysis, all script features (double brackets, local keyword, BASH_VERSINFO array) are supported in Bash 2.0+. This change improves compatibility with older systems while maintaining full functionality. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -43,8 +43,8 @@ function show_header() {
|
|||||||
|
|
||||||
function test_prerequisites() {
|
function test_prerequisites() {
|
||||||
# Test bash version
|
# Test bash version
|
||||||
if [ "${BASH_VERSINFO[0]}" -lt 4 ]; then
|
if [ "${BASH_VERSINFO[0]}" -lt 2 ]; then
|
||||||
write_color "ERROR: Bash 4.0 or higher is required" "$COLOR_ERROR"
|
write_color "ERROR: Bash 2.0 or higher is required" "$COLOR_ERROR"
|
||||||
write_color "Current version: ${BASH_VERSION}" "$COLOR_ERROR"
|
write_color "Current version: ${BASH_VERSION}" "$COLOR_ERROR"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user