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 }