Skip to content

Commit 8e26521

Browse files
Rename get_platform per get_os
1 parent 0fe2320 commit 8e26521

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

hooks/pre_install.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ local util = require("util")
99
--- @return table Version information
1010
function PLUGIN:PreInstall(ctx)
1111
local version = ctx.version
12-
local platform = util.get_platform()
12+
local os = util.get_os()
1313
local download_url = "https://github.com/Kampfkarren/selene/releases/download/"
1414
.. version
1515
.. "/selene-"
1616
.. version
1717
.. "-"
18-
.. platform
18+
.. os
1919
.. ".zip"
2020

2121
return {

lib/util.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ function M.headers()
1111
}
1212
end
1313

14-
--- Returns the name of the platform.
14+
--- Returns the name of the OS.
1515
---
16-
--- @return string Platform name
17-
function M.get_platform()
18-
local platform = RUNTIME.osType
16+
--- @return string OS name
17+
function M.get_os()
18+
local os = RUNTIME.osType
1919

20-
if platform == "darwin" then
20+
if os == "darwin" then
2121
return "macos"
2222
end
2323

24-
return platform
24+
return os
2525
end
2626

2727
--- Returns a table containing the results of applying the callback.

0 commit comments

Comments
 (0)