mirror of
https://github.com/akatsukiro/lsky-pro-install-script.git
synced 2025-06-08 05:14:32 +08:00
fix: RHEL系使用大版本号以避免可能的404
This commit is contained in:
parent
ce4aec4a9e
commit
517be22954
@ -35,7 +35,7 @@ pre_check() {
|
||||
os_version=$VERSION_ID
|
||||
elif [[ $ID == "centos"|| $ID == "rocky" || $ID == "alma" || $ID_LIKE == "rhel" ]]; then
|
||||
systemFlag="3"
|
||||
os_version=$VERSION_ID
|
||||
os_version=$(echo $VERSION_ID | awk -F '.' '{print $1}')
|
||||
else
|
||||
echo "您的操作系统为 $PRETTY_NAME ,这是不支持的操作系统"
|
||||
exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user