mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-23 13:54:04 +08:00
🐛 fix can't find zhimg for dev
This commit is contained in:
parent
e1671a0511
commit
0a901a2eb0
2
build.sh
2
build.sh
@ -96,5 +96,5 @@ elif [ "$1" = "release" ]; then
|
||||
BUILD release
|
||||
RELEASE
|
||||
else
|
||||
echo -e "${RED_COLOR} 错误的命令${RES}"
|
||||
echo -e "${RED_COLOR} Parameter error ${RES}"
|
||||
fi
|
||||
|
@ -25,8 +25,11 @@ func InitIndex() {
|
||||
}
|
||||
index, err = public.Public.Open(fmt.Sprintf("%s.html", conf.Conf.Assets))
|
||||
if err != nil {
|
||||
log.Fatalf(err.Error())
|
||||
return
|
||||
log.Error(err.Error())
|
||||
index, err = public.Public.Open("index.html")
|
||||
if err != nil {
|
||||
log.Fatal(err.Error())
|
||||
}
|
||||
}
|
||||
data, _ := ioutil.ReadAll(index)
|
||||
conf.RawIndexHtml = string(data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user