mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-23 14:59:50 +00:00
Fix dependency install script on RHEL derivatives (#9684)
Added a check to `script/linux` so the script does not try to enable CSB or add EPEL if the user is on Fedora, which does not need these steps. The script now runs nicely on Fedora! :) Release Notes: - N/A
This commit is contained in:
parent
569a7234fd
commit
7bba9da281
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue