update_wrapper.sh - Fix grep command

Change-Id: I497fd0d1ac28adc0975b3ab0ea74ce30a9f84f29
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
This commit is contained in:
Galantsev, Dmitrii
2024-06-04 17:11:06 -05:00
committed by Maisam Arif
parent 4cf59c4edb
commit 23614524ac
+1 -1
View File
@@ -33,7 +33,7 @@ fi
ENABLE_ESMI_LIB=""
# source ENABLE_ESMI_LIB variable from the previous build if it exists
if [ -e 'build/CMakeCache.txt' ]; then
GREP_RESULT=$(grep "ENABLE_ESMI_LIB" "${DIR}/build/CMakeCache.txt" | cut -d = -f 2)
GREP_RESULT=$(grep "ENABLE_ESMI_LIB.*=" "${DIR}/build/CMakeCache.txt" | tail -n 1 | cut -d = -f 2)
ENABLE_ESMI_LIB="-DENABLE_ESMI_LIB=$GREP_RESULT"
echo "ENABLE_ESMI_LIB: [$ENABLE_ESMI_LIB]"
fi