Upgrade pmctl to only do a self upgrade when the update is already available

This commit is contained in:
Daniel
2019-05-22 16:02:31 +02:00
parent a316542f82
commit 7043f05144
3 changed files with 30 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ import (
func checkForUpgrade() (update *updates.File) {
info := info.GetInfo()
file, err := getFile("pmctl/pmctl")
file, err := updates.GetLocalPlatformFile("pmctl/pmctl")
if err != nil {
return nil
}