Skip to content

Commit 44f73d7

Browse files
committed
Update setup script to pull latest evals
1 parent da6c50b commit 44f73d7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

evals/scripts/setup.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,9 @@ code --install-extension rust-lang.rust-analyzer &>/dev/null || exit 1
295295
code --install-extension rooveterinaryinc.roo-cline &>/dev/null || exit 1
296296

297297
if [[ ! -d "../../evals" ]]; then
298+
echo "🔗 Cloning evals repository..."
298299
if gh auth status &>/dev/null; then
299-
read -p "🔗 Would you like to be able to share eval results? (Y/n): " fork_evals
300+
read -p "🔗 Would you like to be able to share eval results (fork repository)? (Y/n): " fork_evals
300301

301302
if [[ "$fork_evals" =~ ^[Yy]|^$ ]]; then
302303
gh repo fork cte/evals --clone ../../evals || exit 1
@@ -306,6 +307,11 @@ if [[ ! -d "../../evals" ]]; then
306307
else
307308
git clone https://github.com/cte/evals.git ../../evals || exit 1
308309
fi
310+
else
311+
echo "🔄 Updating existing evals repository..."
312+
# Run in a subshell to avoid changing the script's working directory
313+
(cd ../../evals && git checkout main && git pull) || { echo "❌ Failed to update evals repository."; exit 1; }
314+
echo "✅ Evals repository is up to date."
309315
fi
310316

311317
if [[ ! -s .env ]]; then

0 commit comments

Comments
 (0)