From 7bb2e8daffc5c282a5f7889e0d9497f1f291087d Mon Sep 17 00:00:00 2001 From: Vasiliy Stelmachenok Date: Sun, 11 Aug 2024 14:19:35 +0300 Subject: [PATCH] Fix escaping in hook --- profiles/pci/graphic_drivers/profiles.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiles/pci/graphic_drivers/profiles.toml b/profiles/pci/graphic_drivers/profiles.toml index fcfd96a..973b83a 100644 --- a/profiles/pci/graphic_drivers/profiles.toml +++ b/profiles/pci/graphic_drivers/profiles.toml @@ -76,7 +76,7 @@ EOF # without letting the dGPU fully sleep or keeping it running for long # periods of time. # See: https://gitlab.gnome.org/GNOME/mutter/-/issues/2969 - cat </etc/profile.d/nvidia-rt3d-workaround.sh + cat <<\EOF >>/etc/profile.d/nvidia-rt3d-workaround.sh if [ -n "$(lspci -d "10de:*:0302")" ]; then export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json fi @@ -149,7 +149,7 @@ EOF # without letting the dGPU fully sleep or keeping it running for long # periods of time. # See: https://gitlab.gnome.org/GNOME/mutter/-/issues/2969 - cat </etc/profile.d/nvidia-rt3d-workaround.sh + cat <<\EOF >>/etc/profile.d/nvidia-rt3d-workaround.sh if [ -n "$(lspci -d "10de:*:0302")" ]; then export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json fi