Skip to content

Commit

Permalink
updated update for fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sacha-roussakis-notter committed Feb 5, 2024
1 parent 2dce992 commit c2249e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func Update() {

assetName := fmt.Sprintf("vaultify_%s_%s.tar.gz", osName, archName)
if osName == "linux" && archName == "arm64" {
assetName = "vaultify_Linux_arm64.tar.gz"
assetName = "vaultify_linux_arm64.tar.gz"
}

downloadURL := fmt.Sprintf("https://github.com/%s/%s/releases/download/%s/%s", repositoryOwner, repositoryName, latestVersion, assetName)
Expand Down Expand Up @@ -102,7 +102,7 @@ func Update() {
}

func getInstalledVersion() (string, error) {
return GetVersion(), nil
return GetVersion(), nil
}

func getLatestReleaseTag(owner, repo string) (string, error) {
Expand All @@ -122,4 +122,4 @@ func getLatestReleaseTag(owner, repo string) (string, error) {
tagEnd := strings.Index(string(output)[tagStart:], `"`) + tagStart

return string(output)[tagStart:tagEnd], nil
}
}

0 comments on commit c2249e4

Please sign in to comment.