From 5296e1fa173f96868f342e9756b68859782c5c75 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Mon, 19 Jun 2023 16:54:58 +0800 Subject: [PATCH] Put back Gentoo stuff (fix #295) I didn't even realize that it was missing --- restore.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/restore.sh b/restore.sh index 777eb1f..50d9094 100755 --- a/restore.sh +++ b/restore.sh @@ -136,6 +136,8 @@ set_tool_paths() { distro="fedora" elif [[ $ID == "opensuse-tumbleweed" ]]; then distro="opensuse" + elif [[ $ID == "gentoo" || $ID_LIKE == "gentoo" || $ID == "pentoo" ]]; then + distro="gentoo" else error "Your distro ($platform_ver) is not detected/supported. See the repo README for supported OS versions/distros" fi @@ -328,6 +330,9 @@ install_depends() { elif [[ $distro == "opensuse" ]]; then sudo zypper -n in curl jq libimobiledevice-1_0-6 openssl-3 python3 usbmuxd unzip vim zenity zip + elif [[ $distro == "gentoo" ]]; then + sudo emerge -av net-misc/curl app-misc/jq libimobiledevice openssh python udev unzip usbmuxd usbutils vim zenity + elif [[ $platform == "macos" ]]; then log "Installing Xcode Command Line Tools" xcode-select --install