Skip to content

Commit

Permalink
Autodetect libssh2 1.10+.[0-9]
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-E committed Aug 30, 2021
1 parent a1b5fcd commit a1a1b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iSSH2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ cleanupAll () {

getLibssh2Version () {
if type git >/dev/null 2>&1; then
LIBSSH_VERSION=`git ls-remote --tags https://github.com/libssh2/libssh2.git | egrep "libssh2-[0-9]+(\.[0-9])*[a-zA-Z]?$" | cut -f 2 -d - | sort -t . -r | head -n 1`
LIBSSH_VERSION=`git ls-remote --tags https://github.com/libssh2/libssh2.git | egrep "libssh2-[0-9]+\.[1-9][0-9](\.[0-9])*[a-zA-Z]?$" | cut -f 2 -d - | sort -t . -r | head -n 1`
LIBSSH_AUTO=true
else
>&2 echo "Install git to automatically get the latest Libssh2 version or use the --libssh2 argument"
Expand Down

0 comments on commit a1a1b82

Please sign in to comment.