From 0d5567de123e62e9c0a322c97318ce679271b77a Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Fri, 2 Nov 2018 18:01:20 +0100 Subject: [PATCH] Use $() instead of backticks and remove useless use of grep. --- BuildSimGrid.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1