nvidia-container-toolkit.spec: fix syntax error in postun scriptlet

Signed-off-by: Claudius Volz <c.volz@gmx.de>
This commit is contained in:
Claudius Volz 2023-02-27 00:45:21 +01:00
parent 06d8bb5019
commit de1bb68d19

View File

@ -69,7 +69,9 @@ rm -rf %{_localstatedir}/lib/rpm-state/nvidia-container-toolkit
ln -sf %{_bindir}/nvidia-container-runtime-hook %{_bindir}/nvidia-container-toolkit ln -sf %{_bindir}/nvidia-container-runtime-hook %{_bindir}/nvidia-container-toolkit
%postun %postun
if [ -L %{_bindir}/nvidia-container-toolkit ] then; rm -f %{_bindir}/nvidia-container-toolkit; fi if [ "$1" = 0 ]; then # package is uninstalled, not upgraded
if [ -L %{_bindir}/nvidia-container-toolkit ]; then rm -f %{_bindir}/nvidia-container-toolkit; fi
fi
%files %files
%license LICENSE %license LICENSE