Adds Update as bootstrap step & fixed GitRepositories

This commit is contained in:
Michel Fedde 2025-02-24 11:17:33 +01:00
parent f3281f59f4
commit 1babe89d0e
3 changed files with 11 additions and 6 deletions

View file

@ -0,0 +1,3 @@
#!/bin/env sh
yay

View file

@ -2,18 +2,20 @@
declare -A repositories declare -A repositories
repositories['~/DSA']="https://git.php.fail/neintonine/dsa.git" repositories['DSA']="https://git.php.fail/neintonine/dsa.git"
repositories['~/Notes']="https://git.php.fail/neintonine/notes.git" repositories['Notes']="https://git.php.fail/neintonine/notes.git"
for path in "${!repositories[@]}"; do for path in "${!repositories[@]}"; do
url=${repositories[$path]} url=${repositories[$path]}
if [ -d "$path" ]; then realPath="${HOME}/$path"
echo "-- $path already exist... skipping clone" if [ -d "$realPath" ]; then
echo "-- $realPath already exist... skipping clone"
continue continue
fi fi
echo "-- Cloning to $path";
git clone "$url" "$path" echo "-- Cloning to $realPath";
git clone "$url" "$realPath"
done done