Fix script/linux for Linux Mint (#19096)

- Closes: https://github.com/zed-industries/zed/issues/18827

Release Notes:

- N/A
This commit is contained in:
Peter Tripp 2024-10-11 16:29:35 -04:00 committed by GitHub
parent 12c9f0f723
commit 3cbaa08d89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,11 +43,11 @@ if [[ -n $apt ]]; then
elfutils elfutils
libsqlite3-dev libsqlite3-dev
) )
if (grep -qP 'PRETTY_NAME="(.+24\.04)' /etc/os-release); then if (grep -qP 'PRETTY_NAME="(Linux Mint 22|.+24\.04)' /etc/os-release); then
deps+=( mold libstdc++-14-dev ) deps+=( mold libstdc++-14-dev )
elif (grep -qP 'PRETTY_NAME="((Debian|Raspbian).+12|.+22\.04)' /etc/os-release); then elif (grep -qP 'PRETTY_NAME="((Debian|Raspbian).+12|Linux Mint 21|.+22\.04)' /etc/os-release); then
deps+=( mold libstdc++-12-dev ) deps+=( mold libstdc++-12-dev )
elif (grep -qP 'PRETTY_NAME="((Debian|Raspbian).+11|.+20\.04)' /etc/os-release); then elif (grep -qP 'PRETTY_NAME="((Debian|Raspbian).+11|Linux Mint 20|.+20\.04)' /etc/os-release); then
deps+=( libstdc++-10-dev ) deps+=( libstdc++-10-dev )
fi fi