diff --git a/apkupdater/apkupdater.go b/apkupdater/apkupdater.go index 3b7be44..ce955e0 100644 --- a/apkupdater/apkupdater.go +++ b/apkupdater/apkupdater.go @@ -60,9 +60,9 @@ type AlpineLinuxPackageUpdate struct { func (u *AlpineLinuxPackageUpdate) Update() { - u.apkLock.Lock() log.Println("Updating packages...") cmd := exec.Command("apk", u.Packages...) + u.apkLock.Lock() stdout, err := cmd.Output() u.apkLock.Unlock() if err != nil {