We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59c6f1e commit 9869ca6Copy full SHA for 9869ca6
1 file changed
lib/util.lua
@@ -26,16 +26,14 @@ end
26
27
function util:GetDownloadInfo(version)
28
local os_type = RUNTIME.osType
29
- os_type = "linux"
30
- -- if os_type ~= "Linux" then
31
- -- return nil, "Unsupported OS type: " .. os_type
32
- -- end
+ if os_type ~= "Linux" then
+ return nil, "Unsupported OS type: " .. os_type
+ end
33
34
local arch = RUNTIME.archType
35
if arch == "x86_64" then
36
arch = "amd64"
37
end
38
- arch = "amd64"
39
local file_name = string.format("chaosblade-%s-%s-%s.tar.gz", version, os_type, arch)
40
local url = string.format("https://github.com/chaosblade-io/chaosblade/releases/download/v%s/%s", version, file_name)
41
0 commit comments