diff --git a/deploy-invttrdg.sh b/deploy-invttrdg.sh index 3897e8d..dd884a5 100755 --- a/deploy-invttrdg.sh +++ b/deploy-invttrdg.sh @@ -48,18 +48,19 @@ cd "$SCRIPT_DIR" FORCE=false SKIP_HEALTH_CHECK=false NO_CACHE=false +INTERACTIVE=true while [[ $# -gt 0 ]]; do case "$1" in - --force) FORCE=true; shift ;; - --skip-health-check) SKIP_HEALTH_CHECK=true; shift ;; - --no-cache) NO_CACHE=true; shift ;; + --force) FORCE=true; INTERACTIVE=false; shift ;; + --skip-health-check) SKIP_HEALTH_CHECK=true; INTERACTIVE=false; shift ;; + --no-cache) NO_CACHE=true; INTERACTIVE=false; shift ;; *) fail "Unknown option: $1" ;; esac done # ── Interactive Menu ──────────────────────────────────────────────────── -if [ $# -eq 0 ]; then +if [ "$INTERACTIVE" = true ]; then echo "" echo -e "${CYAN}╔═══════════════════════════════════════════════════════════════╗${NC}" echo -e "${CYAN}║${NC} ByteLyst Investment Trading - Deployment Options ${CYAN}║${NC}"