From dbead43cc6a44e0031c08d1ee097a46018b95b08 Mon Sep 17 00:00:00 2001 From: Super Manito <68613938+SuperManito@users.noreply.github.com> Date: Sat, 13 Sep 2025 05:36:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChangeMirrors.sh | 5 ++++- DockerInstallation.sh | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeMirrors.sh b/ChangeMirrors.sh index 4149421..89f79ab 100755 --- a/ChangeMirrors.sh +++ b/ChangeMirrors.sh @@ -1,6 +1,6 @@ #!/bin/bash ## Author: SuperManito -## Modified: 2025-09-06 +## Modified: 2025-09-13 ## License: MIT ## GitHub: https://github.com/SuperManito/LinuxMirrors ## Website: https://linuxmirrors.cn @@ -719,6 +719,9 @@ function get_os_release_value() { } function collect_system_info() { + if [ ! -s "${File_LinuxRelease}" ]; then + unsupport_system_error "未知系统" + fi ## 定义系统名称 SYSTEM_NAME="$(get_os_release_value NAME)" SYSTEM_PRETTY_NAME="$(get_os_release_value PRETTY_NAME)" diff --git a/DockerInstallation.sh b/DockerInstallation.sh index 4896ffb..507263a 100755 --- a/DockerInstallation.sh +++ b/DockerInstallation.sh @@ -1,6 +1,6 @@ #!/bin/bash ## Author: SuperManito -## Modified: 2025-09-12 +## Modified: 2025-09-13 ## License: MIT ## GitHub: https://github.com/SuperManito/LinuxMirrors ## Website: https://linuxmirrors.cn @@ -464,6 +464,9 @@ function get_os_release_value() { } function collect_system_info() { + if [ ! -s "${File_LinuxRelease}" ]; then + unsupport_system_error "未知系统" + fi ## 定义系统名称 SYSTEM_NAME="$(get_os_release_value NAME)" SYSTEM_PRETTY_NAME="$(get_os_release_value PRETTY_NAME)"