From 8c48f242875410a77b3bfa4b446261eb1c72921d Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sat, 8 Jun 2013 12:39:56 +0000 Subject: [PATCH] merge trunk r3707 --- common/libs/func_check_version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/libs/func_check_version.sh b/common/libs/func_check_version.sh index 7d452d4..935dd7c 100644 --- a/common/libs/func_check_version.sh +++ b/common/libs/func_check_version.sh @@ -112,7 +112,7 @@ check_prerequisites() { # check_version "$MIN_Coreutils_VER" "$(chown --version | head -n1 | cut -d")" -f2)" "COREUTILS" check_version "$MIN_Diffutils_VER" "$(diff --version | head -n1 | cut -d" " -f4)" "DIFF" check_version "$MIN_Findutils_VER" "$(find --version | head -n1 | cut -d" " -f4)" "FIND" - check_version "$MIN_Gawk_VER" "$(gawk --version | head -n1 | cut -d" " -f3)" "GAWK" + check_version "$MIN_Gawk_VER" "$(gawk --version | head -n1 | awk -F'[ ,]+' '{print $3}')" "GAWK" check_version "$MIN_Grep_VER" "$(grep --version | head -n1 | awk '{print $NF}')" "GREP" check_version "$MIN_Gzip_VER" "$(gzip --version 2>&1 | head -n1 | cut -d" " -f2)" "GZIP" check_version "$MIN_M4_VER" "$(m4 --version 2>&1 | head -n1 | awk '{print $NF}')" "M4"