diff --git a/.config/yadm/bootstrap.d/40-GitRepositories.sh b/.config/yadm/bootstrap.d/40-GitRepositories.sh new file mode 100755 index 0000000..3387033 --- /dev/null +++ b/.config/yadm/bootstrap.d/40-GitRepositories.sh @@ -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 +