19 lines
402 B
Bash
Executable file
19 lines
402 B
Bash
Executable file
#!/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
|
|
|