diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-05-09 16:42:08 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-05-09 16:42:08 +0000 |
commit | 0bc93e1a92cf75d128feab01119681fab2a2da29 (patch) | |
tree | 59156005986c27d11c3ca712219c854518107a39 | |
parent | 5bc2b7359326fb19233270a4151e17c3823d6350 (diff) | |
parent | 2fbe882aa85869857c0af4cb32f1bbd71a0b5138 (diff) | |
download | blueprint-0bc93e1a92cf75d128feab01119681fab2a2da29.tar.gz |
Merge "Create embedcfg directory before writing the file" into main
-rw-r--r-- | bootstrap/bootstrap.go | 1 |
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) } |