From: inv Date: Wed, 28 Apr 2010 07:07:37 +0000 (+0000) Subject: Small correction X-Git-Tag: V5_1_4~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=05ddd34dbb4f739888c4c07127c25467a96af76b;p=tools%2Finstall.git Small correction --- 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