From 26e0fe3f36cca572b5419900d7b6fd8b249b9891 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Thu, 11 Feb 2021 15:09:56 +0900 Subject: [PATCH] Update bench.sh --- bench.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench.sh b/bench.sh index f08c5a9..3487066 100644 --- a/bench.sh +++ b/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 }