- Avoid bashisms in build recipe

OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=2
This commit is contained in:
R N 2023-12-28 06:42:23 +00:00 committed by Git OBS Bridge
parent 796289d1bb
commit cf996aa449
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Dec 27 22:56:20 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
- Avoid bashisms in build recipe
-------------------------------------------------------------------
Tue Nov 14 05:46:34 UTC 2023 - rn <R_Nik_C@proton.me>

View File

@ -65,11 +65,11 @@ systemctl enable supergfxd.service
%postun
%service_del_postun_with_restart supergfxd.service
if [[ -e %{_sysconfdir}/modprobe.d/supergfxd.conf ]]
if [ -e %{_sysconfdir}/modprobe.d/supergfxd.conf ]
then
rm %{_sysconfdir}/modprobe.d/supergfxd.conf
fi
if [[ -e %{_sysconfdir}/modprobe.d/nvidia.conf ]]
if [ -e %{_sysconfdir}/modprobe.d/nvidia.conf ]
then
if grep -q "# options nvidia-drm.modeset=1" %{_sysconfdir}/modprobe.d/nvidia.conf
then