feat: add debug option to show main variables

This commit is contained in:
Slava 2025-07-07 16:13:53 +03:00
parent d96fec2ef0
commit 6578a474de
No known key found for this signature in database
GPG Key ID: 351E7AA9BD0DFEB8

View File

@ -22,6 +22,18 @@ PASS_MARK="\033[0;32m\u2714\033[0m"
FAIL_MARK="\033[0;31m\u2718\033[0m"
SCRIPT_URL="${SCRIPT_URL:-https://get.codex.storage/install.sh}"
# Debug
if [[ "${DEBUG:-false}" == "true" ]]; then
echo -e "\n \e[33mVariables:\e[0m"
echo " VERSION: ${VERSION}"
echo " CIRDL: ${CIRDL}"
echo " INSTALL_DIR: ${INSTALL_DIR}"
echo " BRANCH: ${BRANCH}"
echo " TEMP_DIR: ${TEMP_DIR}"
echo " BASE_URL: ${BASE_URL}"
echo " SCRIPT_URL: ${SCRIPT_URL}"
fi
# Help
if [[ $1 == *"help"* ]] ; then
COMMAND="curl -s ${SCRIPT_URL}"