fixed build errors out if builddir is not present

This commit is contained in:
2022-08-14 14:06:48 +02:00
parent ef61ad7dcf
commit 8c7a9aa205

View File

@@ -177,7 +177,7 @@ func cleanBuildDir(dir string, chrootDir string) error {
return err
}
_ = os.Remove(chrootDir + ".lock")
} else {
} else if !os.IsNotExist(err) {
return fmt.Errorf("chroot dir was not an directory or failed to stat: %w", err)
}
}