From: Arnaud Giersch Date: Fri, 2 Nov 2018 17:01:20 +0000 (+0100) Subject: Use $() instead of backticks and remove useless use of grep. X-Git-Tag: v3_22~824 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/0d5567de123e62e9c0a322c97318ce679271b77a?ds=sidebyside Use $() instead of backticks and remove useless use of grep. --- diff --git a/BuildSimGrid.sh b/BuildSimGrid.sh index e42d186a4c..8876b63156 100755 --- a/BuildSimGrid.sh +++ b/BuildSimGrid.sh @@ -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