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

@ -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