mirror of
https://github.com/teddysun/across.git
synced 2025-01-19 06:19:35 +08:00
Fix a bug
This commit is contained in:
parent
ff0e8d01be
commit
b4205ef4e5
2
bench.sh
2
bench.sh
@ -7,7 +7,7 @@
|
||||
#==============================================================#
|
||||
|
||||
get_opsy() {
|
||||
[ -f /etc/os-release ] && awk -F'[= "]' '/PRETTY_NAME/{print $3,$4,$5}' && 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
|
||||
[ -f /etc/redhat-release ] && awk '{print ($1,$3~/^[0-9]/?$3:$4)}' /etc/redhat-release && return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user