From 7660291258b2588a8ea667461a912349f91dbc7a Mon Sep 17 00:00:00 2001 From: yuri Date: Fri, 5 Jun 2026 19:35:44 +0200 Subject: [PATCH] Update v2/fedora-full.sh fixed if SilentSDDM-theme was already cloned --- v2/fedora-full.sh | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/v2/fedora-full.sh b/v2/fedora-full.sh index 7d59626..a6e9ae2 100755 --- a/v2/fedora-full.sh +++ b/v2/fedora-full.sh @@ -54,21 +54,24 @@ install_packages arandr catfish galculator NetworkManager network-manager-applet say_yellow "Installing SDDM Theme" GIT_DIR="$HOME/git" +REPO_DIR="$GIT_DIR/SilentSDDM" +REPO_URL="https://github.com/uiriansan/SilentSDDM" + mkdir -p "$GIT_DIR" -# Run the installation in a subshell to avoid changing the main script's working directory -( - if cd "$GIT_DIR"; then - echo "Successfully entered $GIT_DIR. Proceeding with SilentSDDM installation..." - - git clone -b main --depth=1 https://github.com/uiriansan/SilentSDDM && \ - cd SilentSDDM && \ - ./install.sh - else - echo "Error: Failed to navigate to $GIT_DIR" >&2 - exit 1 - fi -) +if [ -d "$REPO_DIR/.git" ]; then + echo "SilentSDDM already exists. Updating repository..." + cd "$REPO_DIR" && git pull --rebase +else + echo "Cloning SilentSDDM..." + git clone -b main --depth=1 "$REPO_URL" "$REPO_DIR" +fi + +echo "Running installer..." +cd "$REPO_DIR" || { + echo "Error: Failed to enter $REPO_DIR" >&2 + exit 1 +} # Ensure NetworkManager manages all interfaces say_yellow "Ensuring NetworkManager service is enabled and running..."