From cf996aa4490bf679f3c12bf3f92530568a9954c91336323d36471943e8a8e29d Mon Sep 17 00:00:00 2001 From: R N Date: Thu, 28 Dec 2023 06:42:23 +0000 Subject: [PATCH] - Avoid bashisms in build recipe OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=2 --- supergfxctl.changes | 5 +++++ supergfxctl.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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