Browse Source

fix: [0km] would not read more than one key

This is due to ``ssh`` eating available standard input.

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
rc1
Valentin Lab 4 years ago
parent
commit
9f05a0e048
  1. 2
      bin/0km

2
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 </dev/null; then
print_info "already present"
print_status noop
Feed

Loading…
Cancel
Save