Skip to content

Commit 4aaafa4

Browse files
authored
Update pre_install.lua (#14)
1 parent aa6dc5f commit 4aaafa4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hooks/pre_install.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function PLUGIN:PreInstall(ctx)
2020
end
2121

2222
if (version == nil) then
23-
error("version not found for provided version " .. version)
23+
error("version not found for provided version " .. (ctx.version or "null"))
2424
end
2525

2626
local arch_type = RUNTIME.archType
@@ -56,4 +56,4 @@ function PLUGIN:PreInstall(ctx)
5656
url = baseUrl .. filename,
5757
sha256 = checksum,
5858
}
59-
end
59+
end

0 commit comments

Comments
 (0)