Slava 95383538db
feat: adjust download from a custom url to support branches (#36)
* feat: adjust download from a custom url to support branches

* feat: add debug option to show main variables
2025-07-07 16:28:09 +03:00

21 lines
444 B
Bash
Executable File

# Codex Devnet - Install
# Variables
set -a
BASE_SCRIPT="https://get.codex.storage/install.sh"
SCRIPT_URL="https://get.codex.storage/devnet/install.sh"
BASE_URL="https://pub-4d2c3e46112947d5a108098a4758ae59.r2.dev"
BRANCH="${BRANCH:-master}"
CIRDL="${CIRDL:-true}"
INSTALL_DIR="${INSTALL_DIR:-.}"
set +a
# Help
if [[ $1 == *"help"* ]] ; then
curl -s "${BASE_SCRIPT}" | bash -s -- help
exit 0
fi
# Install
curl -s "${BASE_SCRIPT}" | bash