Adds git repositories as bootstrap step
This commit is contained in:
parent
3ec6090709
commit
6f242c3626
1 changed files with 19 additions and 0 deletions
19
.config/yadm/bootstrap.d/40-GitRepositories.sh
Executable file
19
.config/yadm/bootstrap.d/40-GitRepositories.sh
Executable file
|
|
@ -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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue