Adds Update as bootstrap step & fixed GitRepositories
This commit is contained in:
parent
f3281f59f4
commit
1babe89d0e
3 changed files with 11 additions and 6 deletions
3
.config/yadm/bootstrap.d/00-Update.sh
Executable file
3
.config/yadm/bootstrap.d/00-Update.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/env sh
|
||||
|
||||
yay
|
||||
|
|
@ -2,18 +2,20 @@
|
|||
|
||||
declare -A repositories
|
||||
|
||||
repositories['~/DSA']="https://git.php.fail/neintonine/dsa.git"
|
||||
repositories['~/Notes']="https://git.php.fail/neintonine/notes.git"
|
||||
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"
|
||||
realPath="${HOME}/$path"
|
||||
if [ -d "$realPath" ]; then
|
||||
echo "-- $realPath already exist... skipping clone"
|
||||
continue
|
||||
fi
|
||||
|
||||
echo "-- Cloning to $path";
|
||||
git clone "$url" "$path"
|
||||
|
||||
echo "-- Cloning to $realPath";
|
||||
git clone "$url" "$realPath"
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue