This commit is contained in:
Simon Rieger 2025-07-24 12:02:42 +02:00
parent 854ad9d1a5
commit 035dad1161
2 changed files with 35 additions and 0 deletions

View file

@ -164,4 +164,35 @@ else
echo "dotool ist bereits installiert, überspringe Download" echo "dotool ist bereits installiert, überspringe Download"
fi fi
if command -v goto &> /dev/null; then
echo "goto ist bereits installiert, überspringe Download."
else
echo "goto ist nicht installiert, starte Installation..."
# Temp-Verzeichnis erstellen (optional)
TMP_DIR=$(mktemp -d)
cd "$TMP_DIR" || exit 1
# Neueste RPM-URL von GitHub abrufen
RPM_URL=$(curl -s https://api.github.com/repos/grafviktor/goto/releases/latest \
| grep "browser_download_url" | grep ".rpm" | cut -d '"' -f 4)
if [ -z "$RPM_URL" ]; then
echo "RPM-Datei nicht gefunden. Abbruch."
exit 1
fi
# RPM herunterladen
curl -L "$RPM_URL" -o goto.rpm
# Paket installieren
sudo dnf install -y goto.rpm
# Aufräumen
cd ~
rm -rf "$TMP_DIR"
echo "goto wurde installiert."
fi
echo "Installationscript abgeschlossen!!!" echo "Installationscript abgeschlossen!!!"

View file

@ -58,4 +58,8 @@ brew install --no-quarantine supersonic
# CD Ripper # CD Ripper
brew install abcde brew install abcde
# GOTO - A simple SSH manager
brew tap avasilic/goto
brew install goto-ssh
echo "Installationscript abgeschlossen!!!" echo "Installationscript abgeschlossen!!!"