Update menu.sh

Former-commit-id: b962c63a59c9b64aa674ec3dc847324303ee058c
This commit is contained in:
fscarmen
2021-10-23 19:56:56 +08:00
committed by GitHub
parent a25d07e63b
commit 8bd992d55c
+1
View File
@@ -42,6 +42,7 @@ fi
# 判断操作系统,只支持 Debian、Ubuntu 或 Centos,如非上述操作系统,删除临时文件,退出脚本
SYS=$(hostnamectl | grep -i system | cut -d : -f2)
[[ -n $SYS ]] || SYS=$(lsb_release -sd)
[[ -n $SYS ]] || SYS=$(cat /etc/redhat-release)
[[ -n $SYS ]] || SYS=$(cat /etc/issue | cut -d '\' -f1 | sed '/^[ ]*$/d')
[[ $(echo $SYS | tr A-Z a-z) =~ debian ]] && SYSTEM=debian