mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2025-11-07 09:50:27 +08:00
优化
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
## Author: SuperManito
|
## Author: SuperManito
|
||||||
## Modified: 2025-03-20
|
## Modified: 2025-03-23
|
||||||
## License: MIT
|
## License: MIT
|
||||||
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
||||||
## Website: https://linuxmirrors.cn
|
## Website: https://linuxmirrors.cn
|
||||||
@@ -649,7 +649,7 @@ function collect_system_info() {
|
|||||||
if [ -s "${File_DebianVersion}" ]; then
|
if [ -s "${File_DebianVersion}" ]; then
|
||||||
SYSTEM_FACTIONS="${SYSTEM_DEBIAN}"
|
SYSTEM_FACTIONS="${SYSTEM_DEBIAN}"
|
||||||
elif [ -s "${File_OracleLinuxRelease}" ]; then
|
elif [ -s "${File_OracleLinuxRelease}" ]; then
|
||||||
output_error "当前操作系统不在本脚本的支持范围内,请前往官网查看支持列表!"
|
output_error "当前操作系统(Oracle Linux)不在本脚本的支持范围内,请前往官网查看支持列表!"
|
||||||
elif [ -s "${File_RedHatRelease}" ]; then
|
elif [ -s "${File_RedHatRelease}" ]; then
|
||||||
SYSTEM_FACTIONS="${SYSTEM_REDHAT}"
|
SYSTEM_FACTIONS="${SYSTEM_REDHAT}"
|
||||||
elif [ -s "${File_openEulerRelease}" ]; then
|
elif [ -s "${File_openEulerRelease}" ]; then
|
||||||
@@ -772,7 +772,7 @@ function collect_system_info() {
|
|||||||
# 理论全部支持或不作判断
|
# 理论全部支持或不作判断
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
output_error "当前操作系统不在本脚本的支持范围内,请前往官网查看支持列表!"
|
output_error "当前操作系统不在本脚本的支持范围内(系统版本未知),请前往官网查看支持列表!"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [[ "${is_supported}" == "false" ]]; then
|
if [[ "${is_supported}" == "false" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user