File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1005,11 +1005,9 @@ then
1005
1005
(' ' |* clang)
1006
1006
CFG_CLANG_REPORTED_VERSION=$( $CFG_CC --version | grep version)
1007
1007
1008
- if [[ $CFG_CLANG_REPORTED_VERSION == * " (based on LLVM " * ]]
1009
- then
1008
+ if echo $CFG_CLANG_REPORTED_VERSION | grep -q " (based on LLVM " ; then
1010
1009
CFG_CLANG_VERSION=$( echo $CFG_CLANG_REPORTED_VERSION | sed ' s/.*(based on LLVM \(.*\))/\1/' )
1011
- elif [[ $CFG_CLANG_REPORTED_VERSION == " Apple LLVM" * ]]
1012
- then
1010
+ elif echo $CFG_CLANG_REPORTED_VERSION | grep -q " Apple LLVM" ; then
1013
1011
CFG_OSX_CLANG_VERSION=$( echo $CFG_CLANG_REPORTED_VERSION | sed ' s/.*version \(.*\) .*/\1/' )
1014
1012
else
1015
1013
CFG_CLANG_VERSION=$( echo $CFG_CLANG_REPORTED_VERSION | sed ' s/.*version \(.*\) .*/\1/' )
You can’t perform that action at this time.
0 commit comments