Explorar el Código

feat: add OPENCODE_BRANCH env var for testing different branches

darrenhinde hace 8 meses
padre
commit
7a2d17ca3a
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      install.sh

+ 2 - 1
install.sh

@@ -19,7 +19,8 @@ NC='\033[0m' # No Color
 
 
 # Configuration
 # Configuration
 REPO_URL="https://github.com/darrenhinde/opencode-agents"
 REPO_URL="https://github.com/darrenhinde/opencode-agents"
-RAW_URL="https://raw.githubusercontent.com/darrenhinde/opencode-agents/main"
+BRANCH="${OPENCODE_BRANCH:-main}"  # Allow override via environment variable
+RAW_URL="https://raw.githubusercontent.com/darrenhinde/opencode-agents/${BRANCH}"
 REGISTRY_URL="${RAW_URL}/registry.json"
 REGISTRY_URL="${RAW_URL}/registry.json"
 INSTALL_DIR=".opencode"
 INSTALL_DIR=".opencode"
 TEMP_DIR="/tmp/opencode-installer-$$"
 TEMP_DIR="/tmp/opencode-installer-$$"