fix mode
This commit is contained in:
		
							parent
							
								
									0227a0c384
								
							
						
					
					
						commit
						8c12160173
					
				
							
								
								
									
										6
									
								
								main.go
								
								
								
								
							
							
						
						
									
										6
									
								
								main.go
								
								
								
								
							|  | @ -27,15 +27,15 @@ func main() { | ||||||
| 		gen.SupportedFeatures = uint64(pluginpb.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL) | 		gen.SupportedFeatures = uint64(pluginpb.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL) | ||||||
| 
 | 
 | ||||||
| 		if !utils.PathExists("./internal") { | 		if !utils.PathExists("./internal") { | ||||||
| 			os.MkdirAll("./internal", 777) | 			os.MkdirAll("./internal", 0755) | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		if !utils.PathExists("./internal/server") { | 		if !utils.PathExists("./internal/server") { | ||||||
| 			os.MkdirAll("./internal/server", 777) | 			os.MkdirAll("./internal/server", 0755) | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		if !utils.PathExists("./internal/logic") { | 		if !utils.PathExists("./internal/logic") { | ||||||
| 			os.MkdirAll("./internal/logic", 777) | 			os.MkdirAll("./internal/logic", 0755) | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		for _, f := range gen.Files { | 		for _, f := range gen.Files { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue