Skip to content

Commit

Permalink
fix: osType
Browse files Browse the repository at this point in the history
  • Loading branch information
yeshan333 committed Apr 8, 2024
1 parent 54e38f3 commit 4e559a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/pre_install.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ function PLUGIN:PreInstall(ctx)
local etcd_version = ctx.version
local download_url
if RUNTIME.osType == "Linux" then
download_url = "https://github.com/etcd-io/etcd/releases/download/v" .. etcd_version .. "/etcd-v" .. etcd_version .. "-" .. string.lower(RUNTIME.OS_TYPE) .. "-" .. string.lower(RUNTIME.archType) .. ".tar.gz"
download_url = "https://github.com/etcd-io/etcd/releases/download/v" .. etcd_version .. "/etcd-v" .. etcd_version .. "-" .. string.lower(RUNTIME.osType) .. "-" .. string.lower(RUNTIME.archType) .. ".tar.gz"
else
download_url = "https://github.com/etcd-io/etcd/releases/download/v" .. etcd_version .. "/etcd-v" .. etcd_version .. "-" .. string.lower(RUNTIME.OS_TYPE) .. "-" .. string.lower(RUNTIME.archType) .. ".zip"
download_url = "https://github.com/etcd-io/etcd/releases/download/v" .. etcd_version .. "/etcd-v" .. etcd_version .. "-" .. string.lower(RUNTIME.osType) .. "-" .. string.lower(RUNTIME.archType) .. ".zip"
end

return {
Expand Down

0 comments on commit 4e559a0

Please sign in to comment.