Update upgrade_openssh9.8p1.sh

This commit is contained in:
科技lion 2025-04-24 13:45:02 +08:00 committed by GitHub
parent 49bfe98da4
commit e2d6b1d25a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,7 @@
#!/bin/bash

# 设置OpenSSH的版本号
OPENSSH_VERSION="10.0p1"
OPENSSH_VERSION=$(curl -s https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/ | grep -oP 'openssh-\K[0-9]+\.[0-9]+p[0-9]+' | sort -V | tail -n 1)


# 检测系统类型