Skip to content

Commit

Permalink
fix malformed update-alternatives command (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams authored Oct 6, 2023
1 parent 1135c2f commit 6aa8c90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ echo 'x /tmp/.java_pid*' >> "%{buildroot}/usr/lib/tmpfiles.d/%{name}.conf"
%post
if [ $1 -ge 1 ] ; then
update-alternatives --install %{_bindir}/java java %{prefix}/bin/java %{priority} \
--slave %{_bindir}/jaotc jfr %{prefix}/bin/jaotc \
--slave %{_bindir}/jaotc jaotc %{prefix}/bin/jaotc \
--slave %{_bindir}/jfr jfr %{prefix}/bin/jfr \
--slave %{_bindir}/jjs jjs %{prefix}/bin/jjs \
--slave %{_bindir}/jrunscript jrunscript %{prefix}/bin/jrunscript \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ popd
%post
if [ $1 -ge 1 ] ; then
update-alternatives --install %{_bindir}/java java %{prefix}/bin/java %{priority} \
--slave %{_bindir}/jaotc jfr %{prefix}/bin/jaotc \
--slave %{_bindir}/jaotc jaotc %{prefix}/bin/jaotc \
--slave %{_bindir}/jfr jfr %{prefix}/bin/jfr \
--slave %{_bindir}/jjs jjs %{prefix}/bin/jjs \
--slave %{_bindir}/jrunscript jrunscript %{prefix}/bin/jrunscript \
Expand Down

0 comments on commit 6aa8c90

Please sign in to comment.