This commit is contained in:
Jakob Borg 2014-12-16 22:40:04 +01:00
parent 7c7b1e6c2d
commit fc6a029311

View File

@ -264,10 +264,10 @@ func main() {
if err == nil && !info.IsDir() { if err == nil && !info.IsDir() {
l.Fatalln(dir, "is not a directory") l.Fatalln(dir, "is not a directory")
} }
if err!=nil&&os.IsNotExist(err){ if err != nil && os.IsNotExist(err) {
err=os.MkdirAll(dir, 0700) err = os.MkdirAll(dir, 0700)
if err != nil { if err != nil {
l.Fatalln("generate:",err) l.Fatalln("generate:", err)
} }
} }