claude_startup: flip default to setup-only, add --launch flag

Default behavior is now setup-only (symlinks + binary, no interactive launch)
so array_started.sh can call it directly without arguments. Use --launch to
start an interactive Claude session.
This commit is contained in:
Gmer4Lfe
2026-06-05 16:04:53 -04:00
parent 0ded0c87a1
commit d9ed8c7704
+5 -7
View File
@@ -23,12 +23,10 @@
# ============================================================================================== # ==============================================================================================
# #
# claude_startup.sh # claude_startup.sh
# Set up persistent symlinks and launch Claude. # Set up persistent symlinks only — default, used by array_started.sh on boot.
# #
# claude_startup.sh --setup # claude_startup.sh --launch
# Set up persistent symlinks only — do not launch Claude. # Set up persistent symlinks and launch Claude interactively.
# Used by array_started.sh to prepare the environment on boot without
# immediately launching an interactive session.
# #
# ============================================================================================== # ==============================================================================================
@@ -36,8 +34,8 @@ PERSIST_DIR="/mnt/user/appdata/claude-code"
CLAUDE_DATA="$PERSIST_DIR/.claude" CLAUDE_DATA="$PERSIST_DIR/.claude"
CLAUDE_BIN="$PERSIST_DIR/local/share/claude" CLAUDE_BIN="$PERSIST_DIR/local/share/claude"
LAUNCH=true LAUNCH=false
[[ "$1" == "--setup" ]] && LAUNCH=false [[ "$1" == "--launch" ]] && LAUNCH=true
# Standalone — no common.sh dependency # Standalone — no common.sh dependency
_log() { echo "$*"; } _log() { echo "$*"; }