Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix dependency install script on RHEL derivatives (#9684)

Jakob Grønhaug7bba9da2815a
diff --git a/script/linux b/script/linux
index bb12006c6fc..dc35b1bd684 100755
--- a/script/linux
+++ b/script/linux
@@ -40,9 +40,11 @@ if [[ -n $dnf ]]; then
libzstd-devel
vulkan-loader
)
- # libxkbcommon-x11-devel is in the crb repo
- $maysudo "$dnf" config-manager --set-enabled crb
- $maysudo "$dnf" install epel-release epel-next-release
+
+ # libxkbcommon-x11-devel is in the crb repo on RHEL and CentOS, not needed for Fedora
+ if ! grep -q "Fedora" /etc/redhat-release; then
+ $maysudo "$dnf" config-manager --set-enabled crb
+ fi
$maysudo "$dnf" install -y "${deps[@]}"
exit 0