Skip to content

Commit 920d16f

Browse files
committed
fixed a small bug in mac os that terminated the script if gcc not found
1 parent 2f5002a commit 920d16f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/installation/common/util.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ function CleanBuild {
237237
. scl_source enable gcc-toolset-11 > /dev/null 2> /dev/null || true
238238
. scl_source enable devtoolset-11 > /dev/null 2> /dev/null || true
239239
fi
240-
GCC_VER=$(gcc --version | grep gcc)
240+
GCC_VER=$(gcc --version | grep gcc) || true
241241
#GCC_VER=$(gcc --version | grep gcc | grep -oE ' |\S+' | awk '{print $NF}' | cut -d '.' -f 1-2)
242242
if [ -n "${GCC_VER}" ]; then
243243
read -ra tokens <<< $GCC_VER

0 commit comments

Comments
 (0)