mirror of
https://github.com/fengxxc/wechatmp2markdown.git
synced 2026-02-23 07:10:54 +08:00
fix: create image permission denied in linux (change mkdir permission bits to 0755)
This commit is contained in:
2
Makefile
2
Makefile
@@ -1,6 +1,6 @@
|
||||
BUILD_ENV := CGO_ENABLED=0
|
||||
APP=wechatmp2markdown
|
||||
VERSION=v1.1.5
|
||||
VERSION=v1.1.6
|
||||
|
||||
# linux or mac 环境编译
|
||||
# make [cmd]
|
||||
|
||||
@@ -92,7 +92,7 @@ func FormatAndSave(article parse.Article, filePath string) error {
|
||||
|
||||
// make basePath dir if not exists
|
||||
if _, err := os.Stat(basePath); err != nil {
|
||||
if err := os.MkdirAll(basePath, 0644); err != nil {
|
||||
if err := os.MkdirAll(basePath, 0755); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user