Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ usage() {
}

show_usage_notice() {
if [[ ! -f "${SCRIPT_DIR}/bin/lib/usage-notice.js" ]]; then
# usage-notice.js may not exist when the cloned release tag predates the
# feature. Skip gracefully so the installer can still complete.
return 0
fi
local -a notice_cmd=(node "${SCRIPT_DIR}/bin/lib/usage-notice.js")
if [ "${NON_INTERACTIVE:-}" = "1" ]; then
notice_cmd+=(--non-interactive)
Expand Down Expand Up @@ -774,6 +779,7 @@ install_nemoclaw() {
spin "Building NemoClaw CLI modules" npm run --if-present build:cli
spin "Building NemoClaw plugin" bash -c 'cd nemoclaw && npm install --ignore-scripts && npm run build'
spin "Linking NemoClaw CLI" npm link
SCRIPT_DIR="$(pwd)"
else
info "Installing NemoClaw from GitHub…"
# Resolve the latest release tag so we never install raw main.
Expand Down Expand Up @@ -801,6 +807,7 @@ install_nemoclaw() {
spin "Building NemoClaw CLI modules" bash -c "cd \"$nemoclaw_src\" && npm run --if-present build:cli"
spin "Building NemoClaw plugin" bash -c "cd \"$nemoclaw_src\"/nemoclaw && npm install --ignore-scripts && npm run build"
spin "Linking NemoClaw CLI" bash -c "cd \"$nemoclaw_src\" && npm link"
SCRIPT_DIR="$nemoclaw_src"
fi

refresh_path
Expand Down