This commit is contained in:
parent
938308dc7d
commit
4ee7c2439b
1 changed files with 1 additions and 7 deletions
|
@ -172,18 +172,12 @@ func (h webhook) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
|||
}
|
||||
|
||||
rootfs := path.Join(dir, "rootfs")
|
||||
src := path.Join(dir, "src")
|
||||
if err = os.MkdirAll(rootfs, 0700); err != nil {
|
||||
log.Println(err)
|
||||
http.Error(w, "error", http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
if err = os.MkdirAll(src, 0700); err != nil {
|
||||
log.Println(err)
|
||||
http.Error(w, "error", http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
src := path.Join(cache, "src")
|
||||
if err = os.MkdirAll(src, 0700); err != nil {
|
||||
log.Println(err)
|
||||
http.Error(w, "error", http.StatusInternalServerError)
|
||||
|
|
Loading…
Reference in a new issue