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:
@ -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
|
||||||
|
Reference in New Issue
Block a user