Adds git repositories as bootstrap step

This commit is contained in:
Michel Fedde 2025-02-23 23:05:31 +01:00
parent 3ec6090709
commit 6f242c3626

View file

@ -0,0 +1,19 @@
#!/bin/env sh
declare -A repositories
repositories['~/DSA']="https://git.php.fail/neintonine/dsa.git"
repositories['~/Notes']="https://git.php.fail/neintonine/notes.git"
for path in "${!repositories[@]}"; do
url=${repositories[$path]}
if [ -d "$path" ]; then
echo "-- $path already exist... skipping clone"
continue
fi
echo "-- Cloning to $path";
git clone "$url" "$path"
done