Adds bootstrap.v2
This commit is contained in:
parent
06c8003cf2
commit
2bbccb4595
61 changed files with 468 additions and 4 deletions
21
.config/yadm/bootstrap.v2/actions/40-GitRepositories.sh
Executable file
21
.config/yadm/bootstrap.v2/actions/40-GitRepositories.sh
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/env sh
|
||||
|
||||
declare -A repositories
|
||||
|
||||
repositories['DSA']="ssh://git.php.fail/neintonine/dsa.git"
|
||||
repositories['Notes']="ssh://git.php.fail/neintonine/notes.git"
|
||||
repositories['gameconcepts']="ssh://git.php.fail/neintonine/game-concepts.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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue