This commit is contained in:
Jephté Clain 2020-10-06 04:40:55 +04:00
parent a91542b47f
commit 4603b1a6a0
1 changed files with 4 additions and 3 deletions

View File

@ -288,9 +288,10 @@ function __java_compute_vms() {
# sur debian
array_from_lines vms "$(list_dirs /usr/lib/jvm)"
for vm in "${vms[@]}"; do
v="${vm%-sun}"
v="${vm%-amd64}"
v="${vm%-openjdk}"
v="$vm"
v="${v%-sun}"
v="${v%-amd64}"
v="${v%-openjdk}"
v="${v#java-}"
v="${v#j2sdk}"
if [ "$v" == 1.4 ]; then