File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -295,8 +295,9 @@ code --install-extension rust-lang.rust-analyzer &>/dev/null || exit 1
295295code --install-extension rooveterinaryinc.roo-cline & > /dev/null || exit 1
296296
297297if [[ ! -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."
309315fi
310316
311317if [[ ! -s .env ]]; then
You can’t perform that action at this time.
0 commit comments