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