update package installation template
This commit is contained in:
parent
c2e186ee42
commit
a0426d0117
1 changed files with 3 additions and 2 deletions
|
@ -69,9 +69,10 @@ sudo dnf install -y \
|
||||||
hyprpm_update_plugin() {
|
hyprpm_update_plugin() {
|
||||||
local REPO_URL="$1"
|
local REPO_URL="$1"
|
||||||
local PLUGIN_NAME="$2"
|
local PLUGIN_NAME="$2"
|
||||||
|
local REPO_NAME="${REPO_URL##*/}"
|
||||||
|
|
||||||
# Repository-Prüfung mit stderr-Umleitung
|
# 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..."
|
echo "Füge Repository hinzu..."
|
||||||
if ! hyprpm add "$REPO_URL" 2>/dev/null; then
|
if ! hyprpm add "$REPO_URL" 2>/dev/null; then
|
||||||
echo "⚠️ Repository konnte nicht hinzugefügt (existiert bereits?)"
|
echo "⚠️ Repository konnte nicht hinzugefügt (existiert bereits?)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue