Update bench.sh

This commit is contained in:
Teddysun 2021-02-11 15:09:56 +09:00
parent 94a2f37e8d
commit 26e0fe3f36
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D

View File

@ -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
}