From 1babe89d0eb2a17694b32bbeebd6f71007cee573 Mon Sep 17 00:00:00 2001 From: Michel Fedde Date: Mon, 24 Feb 2025 11:17:33 +0100 Subject: [PATCH] Adds Update as bootstrap step & fixed GitRepositories --- .config/yadm/bootstrap.d/00-Update.sh | 3 +++ .../{00-Dependencies.sh => 01-Dependencies.sh} | 0 .config/yadm/bootstrap.d/40-GitRepositories.sh | 14 ++++++++------ 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100755 .config/yadm/bootstrap.d/00-Update.sh rename .config/yadm/bootstrap.d/{00-Dependencies.sh => 01-Dependencies.sh} (100%) diff --git a/.config/yadm/bootstrap.d/00-Update.sh b/.config/yadm/bootstrap.d/00-Update.sh new file mode 100755 index 0000000..61e2854 --- /dev/null +++ b/.config/yadm/bootstrap.d/00-Update.sh @@ -0,0 +1,3 @@ +#!/bin/env sh + +yay diff --git a/.config/yadm/bootstrap.d/00-Dependencies.sh b/.config/yadm/bootstrap.d/01-Dependencies.sh similarity index 100% rename from .config/yadm/bootstrap.d/00-Dependencies.sh rename to .config/yadm/bootstrap.d/01-Dependencies.sh diff --git a/.config/yadm/bootstrap.d/40-GitRepositories.sh b/.config/yadm/bootstrap.d/40-GitRepositories.sh index 3387033..0506cf0 100755 --- a/.config/yadm/bootstrap.d/40-GitRepositories.sh +++ b/.config/yadm/bootstrap.d/40-GitRepositories.sh @@ -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