Fix postun scriplet failure

Resolves: rhbz#1929842
This commit is contained in:
Mikolaj Izdebski 2021-04-28 12:53:04 +02:00
parent 5ba64c6880
commit f5aee6ac83

View File

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