mirror of
https://github.com/teddysun/across.git
synced 2025-01-18 22:09:35 +08:00
Update bench.sh
This commit is contained in:
parent
94a2f37e8d
commit
26e0fe3f36
2
bench.sh
2
bench.sh
@ -53,7 +53,7 @@ _exit() {
|
||||
}
|
||||
|
||||
get_opsy() {
|
||||
[ -f /etc/redhat-release ] && awk '{print ($1,$3~/^[0-9]/?$3:$4)}' /etc/redhat-release && return
|
||||
[ -f /etc/redhat-release ] && awk '{print $0}' /etc/redhat-release && return
|
||||
[ -f /etc/os-release ] && awk -F'[= "]' '/PRETTY_NAME/{print $3,$4,$5}' /etc/os-release && return
|
||||
[ -f /etc/lsb-release ] && awk -F'[="]+' '/DESCRIPTION/{print $2}' /etc/lsb-release && return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user