Base setup, shell must be set, fix remote host check

This commit is contained in:
2025-07-04 14:27:49 +09:00
parent d60ed41100
commit 50e6df775c
2 changed files with 3 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ else
# make sure the identiy file is there
# grep "IdentityFile" in this
SSH_TEST=("${SUDO_COMMAND[@]}" "ssh" "${REMOTE_HOST}");
result=$("${SSH_TEST[@]}");
result=$("${SSH_TEST[@]}" 2>&1);
validate_string="You've successfully authenticated with the key"
if [[ "$result" != *"$validate_string"* ]]; then
echo "Could not connect to ${REMOTE_HOST}: ${result}";