mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-26 15:02:00 +02:00
Fix version comparison logic
This commit is contained in:
parent
a827455be7
commit
339b115542
@ -432,7 +432,7 @@ func Update() error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to parse update info: %v", err)
|
||||
}
|
||||
if downloadData.Version == Version {
|
||||
if downloadData.Version == "v0."+Version {
|
||||
fmt.Printf("Latest version (v0.%s) is already installed\n", Version)
|
||||
}
|
||||
err = downloadFile("/tmp/hishtory-client", downloadData.LinuxAmd64Url)
|
||||
|
Loading…
x
Reference in New Issue
Block a user