mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-12 17:59:06 +02:00
13 lines
312 B
Go
13 lines
312 B
Go
package installer
|
|
|
|
import "os"
|
|
|
|
// removeUpdaterBinary deletes the updater copy left in the temp dir. On darwin a
|
|
// running binary can be unlinked, so no retry is needed.
|
|
func removeUpdaterBinary(path string) error {
|
|
if err := os.Remove(path); err != nil && !os.IsNotExist(err) {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|