From b23aa566809095e8ce38d450b4d09b6ac8c2b154 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Wed, 22 Dec 2021 13:25:07 +0100 Subject: [PATCH] fix: [vps-setup] make password login work The ``stdin`` was blocked for sshpass to read it Signed-off-by: Valentin Lab --- bin/0km | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/0km b/bin/0km index 12a313e..ee38d76 100755 --- a/bin/0km +++ b/bin/0km @@ -80,7 +80,7 @@ ssh:open() { -o ConnectTimeout=5 -o StrictHostKeyChecking=no \ "${ssh_options[@]}" \ "$hostname" "$@" -- true) - "${full_cmd[@]}" /dev/null 2>&1 || { + "${full_cmd[@]}" >/dev/null 2>&1 || { err "Failed: ${full_cmd[*]}" return 1 }