mirror of
https://gitlab.com/fscarmen/warp.git
synced 2026-06-24 15:12:39 +08:00
Update menu.sh
Former-commit-id: b962c63a59c9b64aa674ec3dc847324303ee058c
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user