mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Update setup script to pull latest evals repo (#3200)
This commit is contained in:
parent
328a25e889
commit
4ce3e64027
1 changed files with 7 additions and 1 deletions
|
|
@ -295,8 +295,9 @@ code --install-extension rust-lang.rust-analyzer &>/dev/null || exit 1
|
|||
code --install-extension rooveterinaryinc.roo-cline &>/dev/null || exit 1
|
||||
|
||||
if [[ ! -d "../../evals" ]]; then
|
||||
echo "🔗 Cloning evals repository..."
|
||||
if gh auth status &>/dev/null; then
|
||||
read -p "🔗 Would you like to be able to share eval results? (Y/n): " fork_evals
|
||||
read -p "🔗 Would you like to be able to share eval results (fork repository)? (Y/n): " fork_evals
|
||||
|
||||
if [[ "$fork_evals" =~ ^[Yy]|^$ ]]; then
|
||||
gh repo fork cte/evals --clone ../../evals || exit 1
|
||||
|
|
@ -306,6 +307,11 @@ if [[ ! -d "../../evals" ]]; then
|
|||
else
|
||||
git clone https://github.com/cte/evals.git ../../evals || exit 1
|
||||
fi
|
||||
else
|
||||
echo "🔄 Updating existing evals repository..."
|
||||
# Run in a subshell to avoid changing the script's working directory
|
||||
(cd ../../evals && git checkout main && git pull) || { echo "❌ Failed to update evals repository."; exit 1; }
|
||||
echo "✅ Evals repository is up to date."
|
||||
fi
|
||||
|
||||
if [[ ! -s .env ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue