mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 17:43:31 +00:00
976d0039ff
update-alternatives take the path to the real file as argument, not the symlink installation path.
15 lines
492 B
Bash
15 lines
492 B
Bash
#!@TERMUX_PREFIX@/bin/sh
|
|
|
|
if [ "$1" != "upgrade" ]; then
|
|
if [ -x "@TERMUX_PREFIX@/bin/update-alternatives" ]; then
|
|
update-alternatives --remove java-profile @TERMUX_PREFIX@/lib/jvm/java-17-openjdk/etc/profile.d/java.sh
|
|
for tool in @binaries@; do
|
|
update-alternatives --remove $tool @TERMUX_PREFIX@/lib/jvm/java-17-openjdk/bin/$tool
|
|
done
|
|
|
|
for manpage in @manpages@; do
|
|
update-alternatives --remove $manpage @TERMUX_PREFIX@/lib/jvm/java-17-openjdk/man/man1/$manpage
|
|
done
|
|
fi
|
|
fi
|