优化命令选项的使用场景

This commit is contained in:
Super Manito
2025-06-20 01:37:18 +08:00
parent a76be04dfd
commit aa5887f35c

View File

@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
## Author: SuperManito ## Author: SuperManito
## Modified: 2025-06-15 ## Modified: 2025-06-20
## License: MIT ## License: MIT
## GitHub: https://github.com/SuperManito/LinuxMirrors ## GitHub: https://github.com/SuperManito/LinuxMirrors
## Website: https://linuxmirrors.cn ## Website: https://linuxmirrors.cn
@@ -1015,7 +1015,7 @@ function check_command_options() {
output_error "当前系统不支持使用指定版本代号命令选项,请确认后重试!" output_error "当前系统不支持使用指定版本代号命令选项,请确认后重试!"
fi fi
fi fi
if [[ "${INSTALL_EPEL}" == "true" || "${ONLY_EPEL}" == "true" ]]; then if [[ "${ONLY_EPEL}" == "true" ]]; then
case "${SYSTEM_FACTIONS}" in case "${SYSTEM_FACTIONS}" in
"${SYSTEM_REDHAT}") "${SYSTEM_REDHAT}")
if [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_FEDORA}" ]]; then if [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_FEDORA}" ]]; then