Use /bin/bash instead of env

This commit is contained in:
Tim Hardeck 2018-02-06 13:56:38 +01:00
parent ac6f710f2e
commit b14b4b2958
No known key found for this signature in database
GPG Key ID: A67C496765D6E0C0

View File

@ -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 \