#!/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]} realPath="${HOME}/$path" if [ -d "$realPath" ]; then echo "-- $realPath already exist... skipping clone" continue fi echo "-- Cloning to $realPath"; git clone "$url" "$realPath" done