diff --git a/script/deploy.sh b/script/deploy.sh index 996d2d1..37aa162 100755 --- a/script/deploy.sh +++ b/script/deploy.sh @@ -101,7 +101,7 @@ setup_ssh() { echod "\n ➡️ Copying SSH key to target host '${TARGET_USER}@${LIVE_TARGET_IP}'..." - if cat "~/.ssh/known_hosts" | grep ${LIVE_TARGET_IP}; then + if cat "~/.ssh/known_hosts" | grep "${LIVE_TARGET_IP}"; then echo -e "\n ⚠️ The SSH fingerprint for the selected IP address $(gum style --italic "\"${LIVE_TARGET_IP}\"") is not the same as the one in $(gum style --italic "\".ssh/known_hosts\""). This could occur for multiple reasons :