Update v2/fedora-full.sh

fixed if SilentSDDM-theme was already cloned
This commit is contained in:
2026-06-05 19:35:44 +02:00
parent 489ac19198
commit 7660291258
+14 -11
View File
@@ -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..."
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
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
echo "Running installer..."
cd "$REPO_DIR" || {
echo "Error: Failed to enter $REPO_DIR" >&2
exit 1
fi
)
}
# Ensure NetworkManager manages all interfaces
say_yellow "Ensuring NetworkManager service is enabled and running..."