This commit is contained in:
SuperManito
2024-01-31 22:39:05 +08:00
parent d4e0cb395b
commit 0f2c7d88f4
8 changed files with 428 additions and 309 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
## Author: SuperManito
## Modified: 2024-01-18
## Modified: 2024-01-31
## License: MIT
## GitHub: https://github.com/SuperManito/LinuxMirrors
## Website: https://linuxmirrors.cn
@@ -139,12 +139,12 @@ function EnvJudgment() {
## 判定当前系统派系
if [ -s $File_DebianVersion ]; then
SYSTEM_FACTIONS="${SYSTEM_DEBIAN}"
elif [ -s $File_OpenCloudOSRelease ]; then
SYSTEM_FACTIONS="${SYSTEM_OPENCLOUDOS}" # 注OpenCloudOS 判断优先级需要高于 RedHat因为8版本基于红帽而9版本不是
elif [ -s $File_openEulerRelease ]; then
SYSTEM_FACTIONS="${SYSTEM_OPENEULER}"
elif [ -s $File_RedHatRelease ]; then
SYSTEM_FACTIONS="${SYSTEM_REDHAT}"
elif [ -s $File_OpenCloudOSRelease ]; then
SYSTEM_FACTIONS="${SYSTEM_OPENCLOUDOS}" # 注RedHat 判断优先级需要高于 OpenCloudOS因为8版本基于红帽而9版本不是
else
Output_Error "无法判断当前运行环境,当前系统不在本脚本的支持范围内"
fi