diff --git a/deploy b/deploy index 6b0af5e..60ee1c6 100755 --- a/deploy +++ b/deploy @@ -33,7 +33,11 @@ if [ "$1" = "status" ]; then start for h in $(ls hosts); do host="$(resolveAlias $h)" - echo -n "==> $h: " + if ! tsAlive $host; then + msg "can't reach ${host}.. skipping.." + continue + fi + echo -n "===> $h: " host_data="$(${SSH} root@${host} 'nixos-version --json')" echo -e "\t\t$(echo $host_data | jq -r .nixosVersion)\t$(echo $host_data | jq -r .configurationRevision)" done