From b4205ef4e533649746b7106fe35f9c09ffba7426 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Fri, 25 Dec 2015 20:16:48 +0800 Subject: [PATCH] Fix a bug --- bench.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench.sh b/bench.sh index 0cb59f5..3b72227 100644 --- a/bench.sh +++ b/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 }