feat: Create script to clone exercism repos

This commit is contained in:
Paul Gauthier (aider) 2024-12-19 11:47:16 -08:00
parent 678845dfda
commit 6cadee31bf

View file

@ -0,0 +1,20 @@
#!/bin/bash
# Create directories if they don't exist
mkdir -p tmp.benchmark/exercism
# Change to the exercism directory
cd tmp.benchmark/exercism
# List of languages to clone
languages=("cpp" "go" "java" "javascript" "python" "rust")
# Clone each repository
for lang in "${languages[@]}"; do
if [ ! -d "$lang" ]; then
echo "Cloning $lang repository..."
git clone "https://github.com/exercism/$lang"
else
echo "$lang repository already exists"
fi
done