Skip to content

Commit

Permalink
Update install.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
dipankardas011 authored Oct 23, 2023
1 parent e755b22 commit 954d73c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ mkdir -Force $env:USERPROFILE\.ksctl\config\local\managed

Write-Host "Available Releases" -ForegroundColor Cyan

$response = Invoke-RestMethod "https://api.github.com/repos/kubesimplify/ksctl/releases"
$response = Invoke-RestMethod "https://api.github.com/repos/kubesimplify/ksctl-cli/releases"
# get the release version

foreach ($release in $response.tag_name) {
Expand All @@ -44,9 +44,9 @@ if ($Arch -eq 1) {
Exit 1
}

Invoke-WebRequest -Uri https://github.com/kubesimplify/ksctl/releases/download/v${ReleaseVersion}/ksctl_${ReleaseVersion}_checksums.txt -OutFile ksctl_${ReleaseVersion}_checksums.txt
Invoke-WebRequest -Uri https://github.com/kubesimplify/ksctl/releases/download/v${ReleaseVersion}/ksctl_${ReleaseVersion}_windows_${Arch}.tar.gz -OutFile ksctl_${ReleaseVersion}_windows_${Arch}.tar.gz
Invoke-WebRequest -Uri https://github.com/kubesimplify/ksctl/releases/download/v${ReleaseVersion}/ksctl_${ReleaseVersion}_windows_${Arch}.tar.gz.cert -OutFile ksctl_${ReleaseVersion}_windows_${Arch}.tar.gz.cert
Invoke-WebRequest -Uri https://github.com/kubesimplify/ksctl-cli/releases/download/v${ReleaseVersion}/ksctl_${ReleaseVersion}_checksums.txt -OutFile ksctl_${ReleaseVersion}_checksums.txt
Invoke-WebRequest -Uri https://github.com/kubesimplify/ksctl-cli/releases/download/v${ReleaseVersion}/ksctl_${ReleaseVersion}_windows_${Arch}.tar.gz -OutFile ksctl_${ReleaseVersion}_windows_${Arch}.tar.gz
Invoke-WebRequest -Uri https://github.com/kubesimplify/ksctl-cli/releases/download/v${ReleaseVersion}/ksctl_${ReleaseVersion}_windows_${Arch}.tar.gz.cert -OutFile ksctl_${ReleaseVersion}_windows_${Arch}.tar.gz.cert

# TODO: Add the checksum verification
# file=$(sha256sum ksctl_${RELEASE_VERSION}_${OS}_${ARCH}.tar.gz | awk '{print $1}')
Expand Down

0 comments on commit 954d73c

Please sign in to comment.