Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use $() instead of backticks and remove useless use of grep.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 2 Nov 2018 17:01:20 +0000 (18:01 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 2 Nov 2018 17:01:20 +0000 (18:01 +0100)
BuildSimGrid.sh

index e42d186..8876b63 100755 (executable)
@@ -13,7 +13,7 @@ fi
 
 target=all
 
-install_path=`grep ^CMAKE_INSTALL_PREFIX:PATH= CMakeCache.txt|sed 's/^[^=]*=//'`
+install_path=$(sed -n 's/^CMAKE_INSTALL_PREFIX:PATH=//p' CMakeCache.txt)
 if [ -e ${install_path} -a -d ${install_path} -a -x ${install_path} ] ; then
   target=install
 fi