Fixed a bug where the no ssh connection would be established for any distro other than Fedora 33
This commit is contained in:
parent
7fe3e4e8da
commit
c625fdd09a
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user