Skip to content

Commit

Permalink
fix: set default distribution to open (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
gythialy authored Apr 7, 2024
1 parent 7af0e8b commit 0301da3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/available.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ local shortname = require("shortname")
--- @param ctx table Empty table used as context, for future extension
--- @return table Descriptions of available versions and accompanying tool descriptions
function PLUGIN:Available(ctx)
local distribution = ctx.args[1]
local distribution = ctx.args[1] or "open"
local jdks = {}

if distribution and distribution == "all" then
if distribution == "all" then
for short, dist in pairs(shortname) do
local tempJdks = foojay.fetchtJdkList(dist, "")
for _, jdk in ipairs(tempJdks) do
Expand Down

0 comments on commit 0301da3

Please sign in to comment.