Change grep -P to grep -E

Lookaround is no longer needed here, so we don't need PCRE anymore.
This commit is contained in:
Robbert van der Helm
2022-10-02 16:28:37 +02:00
parent 5b29ac386e
commit 58de205171
+1 -1
View File
@@ -151,7 +151,7 @@ endif
# #
# https://bugs.winehq.org/show_bug.cgi?id=49138 # https://bugs.winehq.org/show_bug.cgi?id=49138
wine_version = run_command( wine_version = run_command(
'sh', '-c', '''wine --version | grep --only-matching -P '[0-9]+\.[0-9]+' | head -n1''', 'sh', '-c', '''wine --version | grep --only-matching -E '[0-9]+\.[0-9]+' | head -n1''',
check : false check : false
) )
if wine_version.returncode() == 0 if wine_version.returncode() == 0