From 2d1536557cb1f42afd83fec6453e52aa43e0dac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20Frantzv=C3=A5g=20Karlsmoen?= Date: Sun, 14 Feb 2021 22:34:26 +0100 Subject: [PATCH] Revert "Fixed a bug where the no ssh connection would be established for any distro other than Fedora 33" This reverts commit 48547865e1760de198bf482fa53799d0b6fc79b7. --- reStream.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/reStream.sh b/reStream.sh index 65efd5b..ef34d01 100755 --- a/reStream.sh +++ b/reStream.sh @@ -100,10 +100,12 @@ ssh_cmd() { VER=$VERSION_ID fi - if [ "$OS" == "Fedora" ] && [ "$VER" == "33" ]; then - ssh -o ConnectTimeout=1 -o PasswordAuthentication=no "remarkable" "$@" + if [ "$OS" == "Fedora" ]; then + if [ "$VER" == "33" ]; then + ssh -o ConnectTimeout=1 -o PasswordAuthentication=no "remarkable" "$@" + fi else - ssh -o ConnectTimeout=1 -o PasswordAuthentication=no "root@$remarkable" "$@" + ssh -o ConnectTimeout=1 -o PasswordAuthentication=no "root@$remarkable" "$@" fi }