From 6398d9f8b96d0de46cf9cfbd6537eeb80c4765c9 Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Wed, 2 Jan 2019 12:19:55 +0100 Subject: [PATCH] Justfile/remote-unlock: warn on failed SSH send --- Justfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Justfile b/Justfile index 70c81c9..a345578 100755 --- a/Justfile +++ b/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}" }