Skip to content

Commit 0c35f15

Browse files
committed
Add --skip-config flag to install.sh (#145)
Allows skipping automatic agent configuration after binary install. Useful for custom setups or CI environments. Usage: curl ... | bash -s -- --skip-config
1 parent 38f699b commit 0c35f15

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

install.sh

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,21 @@ set -euo pipefail
1414
REPO="DeusData/codebase-memory-mcp"
1515
INSTALL_DIR="$HOME/.local/bin"
1616
VARIANT="standard"
17+
SKIP_CONFIG=false
1718
CBM_DOWNLOAD_URL="${CBM_DOWNLOAD_URL:-https://github.com/${REPO}/releases/latest/download}"
1819

1920
for arg in "$@"; do
2021
case "$arg" in
21-
--ui) VARIANT="ui" ;;
22-
--standard) VARIANT="standard" ;;
23-
--dir=*) INSTALL_DIR="${arg#--dir=}" ;;
22+
--ui) VARIANT="ui" ;;
23+
--standard) VARIANT="standard" ;;
24+
--dir=*) INSTALL_DIR="${arg#--dir=}" ;;
25+
--skip-config) SKIP_CONFIG=true ;;
2426
--help|-h)
25-
echo "Usage: install.sh [--ui] [--dir=<path>]"
26-
echo " --ui Install the UI variant (with graph visualization)"
27-
echo " --standard Install the standard variant (default)"
28-
echo " --dir PATH Install directory (default: ~/.local/bin)"
27+
echo "Usage: install.sh [--ui] [--dir=<path>] [--skip-config]"
28+
echo " --ui Install the UI variant (with graph visualization)"
29+
echo " --standard Install the standard variant (default)"
30+
echo " --dir PATH Install directory (default: ~/.local/bin)"
31+
echo " --skip-config Skip automatic agent configuration"
2932
exit 0
3033
;;
3134
esac
@@ -169,13 +172,18 @@ VERSION=$("$DEST" --version 2>&1) || {
169172
echo "Installed: $VERSION"
170173

171174
# Configure agents
172-
echo ""
173-
echo "Configuring coding agents..."
174-
"$DEST" install -y 2>&1 || {
175+
if [ "$SKIP_CONFIG" = true ]; then
175176
echo ""
176-
echo "Agent configuration failed (non-fatal)."
177-
echo "Run manually: codebase-memory-mcp install"
178-
}
177+
echo "Skipping agent configuration (--skip-config)"
178+
else
179+
echo ""
180+
echo "Configuring coding agents..."
181+
"$DEST" install -y 2>&1 || {
182+
echo ""
183+
echo "Agent configuration failed (non-fatal)."
184+
echo "Run manually: codebase-memory-mcp install"
185+
}
186+
fi
179187

180188
# PATH check
181189
if ! echo "$PATH" | tr ':' '\n' | grep -qx "$INSTALL_DIR"; then

0 commit comments

Comments
 (0)