From 9f05a0e048a26c4019b49f28f496108f61a3b32c Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Thu, 4 Mar 2021 11:47:10 +0100 Subject: [PATCH] fix: [0km] would not read more than one key This is due to ``ssh`` eating available standard input. Signed-off-by: Valentin Lab --- bin/0km | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/0km b/bin/0km index 272240f..b875911 100755 --- a/bin/0km +++ b/bin/0km @@ -278,7 +278,7 @@ cmdline.spec::cmd:vps-setup:run() { label="${key##* }" Elt "considering adding key ${DARKYELLOW}$label${NORMAL}" dest="/root/.ssh/authorized_keys" - if ssh:run "$host" -- $sudo_if_necessary grep "\"$key\"" "$dest" >/dev/null 2>&1; then + if ssh:run "$host" -- $sudo_if_necessary grep "\"$key\"" "$dest" >/dev/null 2>&1