21 lines
438 B
Bash
Executable file
21 lines
438 B
Bash
Executable file
#!/bin/env sh
|
|
|
|
declare -A repositories
|
|
|
|
repositories['DSA']="ssh://git.php.fail/neintonine/dsa.git"
|
|
repositories['Notes']="ssh://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
|
|
|