Fix postun scriplet failure

This commit is contained in:
Mikolaj Izdebski 2021-04-28 12:53:04 +02:00
parent 3fbe2d4313
commit 4679456251

View File

@ -239,7 +239,7 @@ update-alternatives --install %{_bindir}/mvn mvn %{homedir}/bin/mvn %{?maven_alt
--slave %{_mandir}/man1/mvnDebug.1.gz mvnDebug1 %{homedir}/bin/mvn.1.gz \ --slave %{_mandir}/man1/mvnDebug.1.gz mvnDebug1 %{homedir}/bin/mvn.1.gz \
%postun %postun
[[ $1 -eq 0 ]] && update-alternatives --remove mvn %{homedir}/bin/mvn if [[ $1 -eq 0 ]]; then update-alternatives --remove mvn %{homedir}/bin/mvn; fi
%files lib -f .mfiles %files lib -f .mfiles
%doc README.md %doc README.md