From de4914f0463170427ca094e101a735517dfcadd5 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Fri, 3 Oct 2025 21:23:23 +0800 Subject: [PATCH] fix: Lower Bash version requirement from 4.0 to 2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- install-remote.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-remote.sh b/install-remote.sh index 7e8d603c..32349da4 100644 --- a/install-remote.sh +++ b/install-remote.sh @@ -43,8 +43,8 @@ function show_header() { function test_prerequisites() { # Test bash version - if [ "${BASH_VERSINFO[0]}" -lt 4 ]; then - write_color "ERROR: Bash 4.0 or higher is required" "$COLOR_ERROR" + if [ "${BASH_VERSINFO[0]}" -lt 2 ]; then + write_color "ERROR: Bash 2.0 or higher is required" "$COLOR_ERROR" write_color "Current version: ${BASH_VERSION}" "$COLOR_ERROR" return 1 fi