diff --git a/lp/init.go b/lp/init.go index edda96b..711e2e2 100644 --- a/lp/init.go +++ b/lp/init.go @@ -373,7 +373,10 @@ func unzip(src string, dest string) error { for _, f := range r.File { fpath := filepath.Join(dest, f.Name) if f.FileInfo().IsDir() { - os.MkdirAll(fpath, os.ModePerm) + err := os.MkdirAll(fpath, os.ModePerm) + if err != nil { + return err + } } else { if err := os.MkdirAll(filepath.Dir(fpath), os.ModePerm); err != nil { return err