Skip to content

Commit

Permalink
fix: openjdk path
Browse files Browse the repository at this point in the history
fix #3
  • Loading branch information
aooohan committed Apr 17, 2024
1 parent c72cdb5 commit 072aa34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hooks/post_install.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ function PLUGIN:PostInstall(ctx)
local majorVersion = sdkInfo.note
local v = strings.split(sdkInfo.version, "+")[1]
local needRemoveDir = {
'/jdk-' .. v .. '.jdk',
'/jdk-' .. majorVersion .. '.jdk',
'/Contents/Home'
['/jdk-' .. v .. '.jdk'] = true,
['/jdk-' .. majorVersion .. '.jdk'] = true,
['/Contents/Home'] = true,
}
print("Checking if need to rename jdk files...")
for _, dir in ipairs(needRemoveDir) do
for dir, _ in pairs(needRemoveDir) do
print("Checking path: " .. path .. dir)
if checkDir(path .. dir) then
print("Renaming jdk files: " .. path .. dir .. '/*')
Expand Down

0 comments on commit 072aa34

Please sign in to comment.