fix: update ralph_import.sh (#148)
Fix ralph_import.sh CLI detection: - Replace npx @anthropic/claude-code check with CLAUDE_CODE_CMD variable - Quote CLAUDE_CODE_CMD to prevent shell expansion issues - Add jq dependency check with installation guidance
This commit is contained in:
parent
02dbb078d7
commit
66947e7005
1 changed files with 7 additions and 3 deletions
|
|
@ -273,9 +273,13 @@ check_dependencies() {
|
||||||
log "ERROR" "Ralph not installed. Run ./install.sh first"
|
log "ERROR" "Ralph not installed. Run ./install.sh first"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! npx @anthropic/claude-code --version &> /dev/null 2>&1; then
|
if ! command -v jq &> /dev/null; then
|
||||||
log "WARN" "Claude Code CLI not found. It will be downloaded when first used."
|
log "WARN" "jq not found. Install it (brew install jq | sudo apt-get install jq | choco install jq) for faster JSON parsing."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! command -v "$CLAUDE_CODE_CMD" &> /dev/null 2>&1; then
|
||||||
|
log "WARN" "Claude Code CLI ($CLAUDE_CODE_CMD) not found. It will be downloaded when first used."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue