From d0ed50abd9074069e6b747c0b141545f3e65d21b Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Wed, 22 Dec 2021 13:28:09 +0100 Subject: [PATCH] new: [vps-install backup] add a warning about vps unexpected failure upon identifying vps type Signed-off-by: Valentin Lab --- bin/0km | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/0km b/bin/0km index ee38d76..caa17f5 100755 --- a/bin/0km +++ b/bin/0km @@ -644,9 +644,11 @@ vps_backup_recover() { return 1 } - type=$(ssh:run "root@$vps" -- vps get-type) && { + if type=$(ssh:run "root@$vps" -- vps get-type); then info "VPS $vps seems to be of ${WHITE}$type${NORMAL} type" - } + else + warn "Couldn't find type of vps '$vps' (command 'vps get-type' failed on vps)." + fi if [ -z "$path" ]; then if [ -n "$vps_path" ]; then