ummmar commited on
Commit
237dcac
·
verified ·
1 Parent(s): 7031cd5

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +10 -0
entrypoint.sh CHANGED
@@ -1,6 +1,16 @@
1
  #!/bin/bash
2
  set -e
3
 
 
 
 
 
 
 
 
 
 
 
4
  # 1. Git Credentials
5
  if [ -n "$GITHUB_TOKEN" ] && [ -n "$GITHUB_USER" ]; then
6
  git config --global credential.helper store
 
1
  #!/bin/bash
2
  set -e
3
 
4
+ # Fallback: Explicitly tell OpenChamber where the binary is
5
+ export OPENCODE_BINARY="/root/.local/bin/opencode"
6
+ if [ ! -f "$OPENCODE_BINARY" ]; then
7
+ # Auto-detect if it ended up somewhere else
8
+ export OPENCODE_BINARY=$(find / -name "opencode" -executable -type f 2>/dev/null | head -n 1)
9
+ fi
10
+
11
+ # 1. Inject Git Credentials
12
+ # ... (keep the rest of your existing entrypoint.sh exactly the same)
13
+
14
  # 1. Git Credentials
15
  if [ -n "$GITHUB_TOKEN" ] && [ -n "$GITHUB_USER" ]; then
16
  git config --global credential.helper store