fix: resolve multiple critical bugs in start.sh (#36)#46
Merged
Conversation
added 2 commits
March 15, 2026 05:17
Bug Fixes: - Fix SCRIPT_DIR undefined variable (critical) - Remove export HOME pollution - Add multi-platform Git installation support - Remove set -e, use manual error handling - Use rsync for incremental sync Improvements: - Correct gateway port (3000 -> 18789) - Graceful failure when Git install fails - Better error messages Fixes #36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🐛 Bug Fixes
Fixes #36
Critical Bugs Fixed
🔴 Bug 1: SCRIPT_DIR Undefined
$SCRIPT_DIRvariable was never definedSCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"at script start🔴 Bug 2: HOME Environment Pollution
export HOME="$TEMP_DIR"polluted user terminalOPENCLAW_CONFIG_DIRinstead of modifyingHOME🟠 Bug 3: Git Installation Only Supported apt-get
🟠 Bug 4: set -e and || true Mixing
set -e, use manual error checkingImprovements
Testing
Priority
🔴 P0 Critical - Script was completely broken for current directory usage
This PR was created automatically by AI assistant