Accepting request 648770 from home:okurz:branches:Cloud:Tools

Fix double if-layer for _test

OBS-URL: https://build.opensuse.org/request/show/648770
OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cf-cli?expand=0&rev=65
This commit is contained in:
Tim Hardeck 2018-11-14 07:59:28 +00:00 committed by Git OBS Bridge
parent d8c9f651e7
commit 31837437f4

View File

@ -82,6 +82,7 @@ grep -rl "0.0.0-unknown-version" ./ | xargs sed -i 's/0.0.0-unknown-version/%{ve
%check
echo 'Test if cf can be executed'
../go/bin/cli --version
%endif
%install
%if 0%{?_test}
@ -94,11 +95,12 @@ cp ci/installers/completion/cf %{buildroot}/%{_sysconfdir}/bash_completion.d/cf.
%endif
%files
%if 0%{?_test}
%else
%defattr(-,root,root,-)
%{_bindir}/cf
%config %{_sysconfdir}/bash_completion.d/cf.sh
%doc LICENSE NOTICE README
%endif
%changelog