aboutsummaryrefslogtreecommitdiffstats
path: root/ui/build/cleanbuild.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/build/cleanbuild.go')
-rw-r--r--ui/build/cleanbuild.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/build/cleanbuild.go b/ui/build/cleanbuild.go
index 2967c3a6..f2de2cda 100644
--- a/ui/build/cleanbuild.go
+++ b/ui/build/cleanbuild.go
@@ -129,6 +129,8 @@ func installCleanIfNecessary(ctx Context, config Config) {
suffix := "\n"
currentProduct := prefix + config.TargetProduct() + "-" + config.TargetBuildVariant() + suffix
+ ensureDirectoriesExist(ctx, filepath.Dir(configFile))
+
writeConfig := func() {
err := ioutil.WriteFile(configFile, []byte(currentProduct), 0666)
if err != nil {