1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-07-20 18:02:59 +03:00

tests: improve SSHD default value (fixup)

Fix typo in the commit improving `SSHD` default.

Regression from fb12d87e0e #1563

Reported-by: Paul Howarth
Bug: https://github.com/libssh2/libssh2/pull/1563#issuecomment-2753676646

Closes #1568
This commit is contained in:
Viktor Szakats
2025-03-26 11:01:06 +01:00
parent 1323e17ba9
commit ea56904aef

View File

@ -45,7 +45,7 @@ fi
d="$(cd "${d}" || exit; pwd)" # sshd needs absolute paths d="$(cd "${d}" || exit; pwd)" # sshd needs absolute paths
SSHD="$(command -v "${SSH:-sshd}" || true)" SSHD="$(command -v "${SSHD:-sshd}" || true)"
[[ "${uname}" = *'_NT'* ]] && SSHD="$(cygpath "${SSHD}")" [[ "${uname}" = *'_NT'* ]] && SSHD="$(cygpath "${SSHD}")"
ver="$("${SSHD}" -V 2>&1 || true)" ver="$("${SSHD}" -V 2>&1 || true)"
if [[ "${ver}" =~ OpenSSH_[a-zA-Z0-9_\ .,]+ ]]; then if [[ "${ver}" =~ OpenSSH_[a-zA-Z0-9_\ .,]+ ]]; then