From b14b4b2958957991990b8af6fb6b31f430467a41 Mon Sep 17 00:00:00 2001 From: Tim Hardeck Date: Tue, 6 Feb 2018 13:56:38 +0100 Subject: [PATCH] Use /bin/bash instead of env --- icinga2.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/icinga2.spec b/icinga2.spec index 02c49d5..e3ebaeb 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -287,6 +287,10 @@ Provides Nano syntax highlighting for icinga2. %prep %setup -q -n %{name}-%{version} +# use absolute shebang instead of env on SUSE distributions +%if "%{_vendor}" == "suse" +find . -type f -name '*.sh' -exec sed -i -e 's|\/usr\/bin\/env bash|\/bin\/bash|g' {} \; +%endif %build CMAKE_OPTS="-DCMAKE_INSTALL_PREFIX=/usr \