From 035dad1161e13bcfe7d2e724d712deea3e041549 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Thu, 24 Jul 2025 12:02:42 +0200 Subject: [PATCH] add goto --- executable_install-fedora.sh | 31 +++++++++++++++++++++++++++++++ executable_install-macos.sh | 4 ++++ 2 files changed, 35 insertions(+) diff --git a/executable_install-fedora.sh b/executable_install-fedora.sh index 9d4d1c6..c831119 100644 --- a/executable_install-fedora.sh +++ b/executable_install-fedora.sh @@ -164,4 +164,35 @@ else echo "dotool ist bereits installiert, überspringe Download" 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!!!" diff --git a/executable_install-macos.sh b/executable_install-macos.sh index a4bc5cd..02039e4 100644 --- a/executable_install-macos.sh +++ b/executable_install-macos.sh @@ -58,4 +58,8 @@ brew install --no-quarantine supersonic # CD Ripper brew install abcde +# GOTO - A simple SSH manager +brew tap avasilic/goto +brew install goto-ssh + echo "Installationscript abgeschlossen!!!"