From a0426d0117b2d51eea10117af8fc555ef29accf8 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Mon, 26 May 2025 10:43:09 +0200 Subject: [PATCH] update package installation template --- executable_install-fedora.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/executable_install-fedora.sh b/executable_install-fedora.sh index 5961308..96afecd 100644 --- a/executable_install-fedora.sh +++ b/executable_install-fedora.sh @@ -69,9 +69,10 @@ sudo dnf install -y \ hyprpm_update_plugin() { local REPO_URL="$1" local PLUGIN_NAME="$2" - + local REPO_NAME="${REPO_URL##*/}" + # Repository-Prüfung mit stderr-Umleitung - if ! hyprpm list 2>/dev/null | grep -q "$REPO_URL"; then + if ! hyprpm list 2>/dev/null | grep -q "$REPO_NAME"; then echo "Füge Repository hinzu..." if ! hyprpm add "$REPO_URL" 2>/dev/null; then echo "⚠️ Repository konnte nicht hinzugefügt (existiert bereits?)"