Fix regex syntax in matching os-release (#38010)

From
https://github.com/zed-industries/zed/pull/37712#issuecomment-3281970712,
thank you @zywo

Release Notes:

- N/A
This commit is contained in:
Martin Pool
2025-09-11 11:22:55 -07:00
committed by GitHub
parent a33af4e9c0
commit 46aa05e240

View File

@@ -47,7 +47,7 @@ if [[ -n $apt ]]; then
musl-dev
build-essential
)
if (grep -qP 'PRETTY_NAME="((Debian|Raspbian).+13|' /etc/os-release); then
if (grep -qP 'PRETTY_NAME="(Debian|Raspbian).+13' /etc/os-release); then
# libstdc++-14-dev is in build-essential
deps+=( mold )
elif (grep -qP 'PRETTY_NAME="(Linux Mint 22|.+24\.(04|10))' /etc/os-release); then