Fix ip detector
This commit is contained in:
parent
6493f2fe91
commit
38b819c32a
@ -131,7 +131,7 @@ trap exit_rm EXIT INT HUP
|
||||
# SSH_CONNECTION is a variable on reMarkable => ssh '' instead of ssh ""
|
||||
# shellcheck disable=SC2016
|
||||
remarkable_ip() {
|
||||
ssh_cmd 'echo $SSH_CONNECTION' | cut -d\ -f3
|
||||
ssh_cmd 'echo $SSH_CONNECTION' | cut -d\ -f3 | cut -d":" -f4
|
||||
}
|
||||
|
||||
# check if we are able to reach the remarkable
|
||||
|
Loading…
x
Reference in New Issue
Block a user