aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2024-05-09 16:42:08 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-05-09 16:42:08 +0000
commit0bc93e1a92cf75d128feab01119681fab2a2da29 (patch)
tree59156005986c27d11c3ca712219c854518107a39
parent5bc2b7359326fb19233270a4151e17c3823d6350 (diff)
parent2fbe882aa85869857c0af4cb32f1bbd71a0b5138 (diff)
downloadblueprint-0bc93e1a92cf75d128feab01119681fab2a2da29.tar.gz
Merge "Create embedcfg directory before writing the file" into main
-rw-r--r--bootstrap/bootstrap.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap/bootstrap.go b/bootstrap/bootstrap.go
index e8ee791..9872dbb 100644
--- a/bootstrap/bootstrap.go
+++ b/bootstrap/bootstrap.go
@@ -584,6 +584,7 @@ func generateEmbedcfgFile(files []string, srcDir string, embedcfgFile string) {
panic(err)
}
+ os.MkdirAll(filepath.Dir(embedcfgFile), os.ModePerm)
os.WriteFile(embedcfgFile, []byte(embedcfgData), 0644)
}