Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix script/linux on RHEL/Fedora (#18788)
Agustin Gomes59f0f4ac4260
diff --git a/script/linux b/script/linuxindex 540bf063ec9..c69cd5a842e 100755--- a/script/linux+++ b/script/linux@@ -89,7 +89,7 @@ if [[ -n $dnf ]] || [[ -n $yum ]]; thenperl-File-Copymold)- elif grep grep -qP '^ID="(rhel|rocky|alma|centos|ol)' /etc/os-release; then+ elif grep -qP '^ID="(rhel|rocky|alma|centos|ol)' /etc/os-release; thendeps+=( perl-interpreter )fi@@ -102,7 +102,7 @@ if [[ -n $dnf ]] || [[ -n $yum ]]; thenfi# libxkbcommon-x11-devel is in a non-default repo on RHEL 8.x/9.x (except on AmazonLinux)- if grep -qP '^VERSION_ID="(8|9)' && grep -qP '^ID="(rhel|rocky|centos|alma|ol)' /etc/os-release; then+ if grep -qP '^VERSION_ID="(8|9)' /etc/os-release && grep -qP '^ID="(rhel|rocky|centos|alma|ol)' /etc/os-release; then$maysudo dnf install -y 'dnf-command(config-manager)'if grep -qP '^PRETTY_NAME="(AlmaLinux 8|Rocky Linux 8)' /etc/os-release; then$maysudo dnf config-manager --set-enabled powertools