diff --git a/supergfxctl.changes b/supergfxctl.changes index e82e2a5..bfd7c63 100644 --- a/supergfxctl.changes +++ b/supergfxctl.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 27 22:56:20 UTC 2023 - Jan Engelhardt + +- Avoid bashisms in build recipe + ------------------------------------------------------------------- Tue Nov 14 05:46:34 UTC 2023 - rn diff --git a/supergfxctl.spec b/supergfxctl.spec index ab4ad5b..bfd451f 100644 --- a/supergfxctl.spec +++ b/supergfxctl.spec @@ -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