X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=config_files%2FSIERPINSKY.sh;h=beace25282db6fcab98cce572b75f40999b092cd;hb=ff31cbcf4980386e97eb8781cbfa5faefe27ee4b;hp=f5cd7d84ff9870ddc6c4e86faf7c3de08b35197b;hpb=8f833b0e5c0cbd6f632d4d6cce27795736153723;p=tools%2Finstall.git diff --git a/config_files/SIERPINSKY.sh b/config_files/SIERPINSKY.sh index f5cd7d8..beace25 100755 --- a/config_files/SIERPINSKY.sh +++ b/config_files/SIERPINSKY.sh @@ -6,7 +6,7 @@ # Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com) # Project : SALOME # Module : Installation Wizard -# Copyright : 2002-2012 CEA +# Copyright : 2002-2013 CEA # # This script is the part of the SALOME installation procedure. # @@ -15,8 +15,8 @@ check_version(){ if [ -n "${SIERPINSKY_ROOT_DIR}" ]; then if [ -f ${SIERPINSKY_ROOT_DIR}/bin/salome/VERSION ]; then - ver=`cat ${SIERPINSKY_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' ` - if [ "$ver" = "${SALOME_VERSION}" ]; then + ver=`head -n1 ${SIERPINSKY_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' ` + if [ "${ver}" = "${SALOME_VERSION}" ]; then return 0 fi fi @@ -30,7 +30,7 @@ return 1 print_env_bin(){ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <