diff --git a/main.go b/main.go index e37410c4a..9f021af27 100755 --- a/main.go +++ b/main.go @@ -453,7 +453,7 @@ func oldInstallExists() bool { if binIsOld { return false } - return oldAgentPath.Exist() + return oldAgentPath.Join("ArduinoCreateAgent.app").Exist() } // printDialog will print a GUI error dialog on macos diff --git a/updater/updater_darwin.go b/updater/updater_darwin.go index f0bc6e5ed..ec00f88cc 100644 --- a/updater/updater_darwin.go +++ b/updater/updater_darwin.go @@ -59,7 +59,7 @@ func checkForUpdates(currentVersion string, updateURL string, cmdName string) (s if currentAppPath.Ext() != ".app" { return "", fmt.Errorf("could not find app root in %s", executablePath) } - oldAppPath := currentAppPath.Parent().Join("ArdiunoCreateAgent.old.app") + oldAppPath := currentAppPath.Parent().Join("ArduinoCreateAgent.old.app") if oldAppPath.Exist() { return "", fmt.Errorf("temp app already exists: %s, cannot update", oldAppPath) }