Message ID | 20210806205235.988761-3-gitster@pobox.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 33f13ad7c5cfffdcd446a02dd8ef4b77bc70affe |
Headers | show |
Series | detect-compiler: clang updates | expand |
diff --git a/detect-compiler b/detect-compiler index c85be83c64..955be1c906 100755 --- a/detect-compiler +++ b/detect-compiler @@ -13,11 +13,11 @@ get_version_line() { } get_family() { - get_version_line | sed 's/^\(.*\) version [0-9][^ ]* .*/\1/' + get_version_line | sed 's/^\(.*\) version [0-9].*/\1/' } get_version() { - get_version_line | sed 's/^.* version \([0-9][^ ]*\) .*/\1/' + get_version_line | sed 's/^.* version \([0-9][^ ]*\).*/\1/' } print_flags() {