ummmar commited on
Commit
0b50bbe
·
verified ·
1 Parent(s): b3a5e3a

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +7 -0
entrypoint.sh CHANGED
@@ -1,6 +1,13 @@
1
  #!/bin/bash
2
  set -e
3
 
 
 
 
 
 
 
 
4
  # 1. Inject Git Credentials for seamless GitHub pushing
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 for seamless GitHub pushing
12
  if [ -n "$GITHUB_TOKEN" ] && [ -n "$GITHUB_USER" ]; then
13
  git config --global credential.helper store