update package installation template

This commit is contained in:
Simon Rieger 2025-05-26 10:43:09 +02:00
parent c2e186ee42
commit a0426d0117

View file

@ -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?)"