Justfile/remote-unlock: warn on failed SSH send
This commit is contained in:
parent
2636941546
commit
6398d9f8b9
1 changed files with 4 additions and 1 deletions
5
Justfile
5
Justfile
|
@ -130,7 +130,10 @@ verify-vnc sshserver attempts="10":
|
|||
function send_and_expect() {
|
||||
local send="${1:?need something to send}"
|
||||
local expect="${2:?need something to expect}"
|
||||
send "${send}"
|
||||
if ! send "${send}"; then
|
||||
echo warning: cannot send > /dev/stderr
|
||||
return -1
|
||||
fi
|
||||
expect "${expect}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue