From 46aa05e2403ec436e334d90e8317a4ca728dc661 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Thu, 11 Sep 2025 11:22:55 -0700 Subject: [PATCH] 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 --- script/linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/linux b/script/linux index 47f58c0bc5ff9e8127f51251c8e0420fc08debba..5523d876871a1d69e22b80344a02785626f1faad 100755 --- a/script/linux +++ b/script/linux @@ -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