mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
pentoo-updater: java and ruby updates
This commit is contained in:
parent
84f66858f9
commit
f354b2ed01
1 changed files with 6 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ set_java() {
|
||||||
if [ "${java_system/17/}" != "${java_system}" ]; then
|
if [ "${java_system/17/}" != "${java_system}" ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
wanted_java=$(eselect java-vm list | grep --color=never 17 | tr -d "[]" | awk '{print $2,$1}' | sort | head -n 1 | awk '{print $2}')
|
wanted_java=$(eselect java-vm list | grep --color=never 21 | tr -d "[]" | awk '{print $2,$1}' | sort | head -n 1 | awk '{print $2}')
|
||||||
if [ -n "${wanted_java}" ]; then
|
if [ -n "${wanted_java}" ]; then
|
||||||
if eselect java-vm set system "${wanted_java}"; then
|
if eselect java-vm set system "${wanted_java}"; then
|
||||||
printf "Successfully set system java vm\n"
|
printf "Successfully set system java vm\n"
|
||||||
|
|
@ -107,12 +107,16 @@ set_java() {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
printf "Failed to detect available jdk-17\n"
|
printf "Failed to detect available jdk-21\n"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
set_ruby() {
|
set_ruby() {
|
||||||
|
if portageq has_version / dev-lang/ruby:3.2; then
|
||||||
|
eselect ruby set ruby32
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
if portageq has_version / dev-lang/ruby:3.1; then
|
if portageq has_version / dev-lang/ruby:3.1; then
|
||||||
eselect ruby set ruby31
|
eselect ruby set ruby31
|
||||||
return 0
|
return 0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue