Fix a bug

This commit is contained in:
Teddysun 2015-12-25 20:16:48 +08:00
parent ff0e8d01be
commit b4205ef4e5

View File

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