From 1ba2c193459f7c53998da35963fabff7e1799c6f Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Fri, 4 Jul 2025 15:12:30 +0900 Subject: [PATCH] Host auth check fi for new clone --- src/bin/new_clone.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/new_clone.sh b/src/bin/new_clone.sh index 2570fef..333cc37 100755 --- a/src/bin/new_clone.sh +++ b/src/bin/new_clone.sh @@ -46,7 +46,8 @@ else # grep "IdentityFile" in this SSH_TEST=("${SUDO_COMMAND[@]}" "ssh" "${REMOTE_HOST}"); result=$("${SSH_TEST[@]}" 2>&1); - validate_string="You've successfully authenticated with the key" + # this can be key or deploy key + validate_string="You've successfully authenticated with the " if [[ "$result" != *"$validate_string"* ]]; then echo "Could not connect to ${REMOTE_HOST}: ${result}"; error=1;