Justfile/remote-unlock: warn on failed SSH send

This commit is contained in:
steveej 2019-01-02 12:19:55 +01:00
parent 2636941546
commit 6398d9f8b9

View file

@ -130,7 +130,10 @@ verify-vnc sshserver attempts="10":
function send_and_expect() { function send_and_expect() {
local send="${1:?need something to send}" local send="${1:?need something to send}"
local expect="${2:?need something to expect}" local expect="${2:?need something to expect}"
send "${send}" if ! send "${send}"; then
echo warning: cannot send > /dev/stderr
return -1
fi
expect "${expect}" expect "${expect}"
} }