From 05ddd34dbb4f739888c4c07127c25467a96af76b Mon Sep 17 00:00:00 2001 From: inv Date: Wed, 28 Apr 2010 07:07:37 +0000 Subject: [PATCH] Small correction --- config_files/YACSGEN.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_files/YACSGEN.sh b/config_files/YACSGEN.sh index 454a223..da7ef1b 100755 --- a/config_files/YACSGEN.sh +++ b/config_files/YACSGEN.sh @@ -16,7 +16,7 @@ check_version(){ if [ -n "${YACSGEN_SRC_DIR}" ]; then cfg_file=setup.py if [ -f ${YACSGEN_SRC_DIR}/${cfg_file} ] ; then - ver=`grep -e "version" ${YACSGEN_SRC_DIR}/${cfg_file} | sed s/\[A-z=,\']//g` + ver=`grep -e "version=" ${YACSGEN_SRC_DIR}/${cfg_file} | sed s/\'/" "/g | awk '{print $2}'` if [ "$ver" = "${YACSGEN_VERSION}" ]; then return 0 fi -- 2.39.2