Skip to content

Commit c546afc

Browse files
committed
修改一键脚本bug
1 parent b494aa6 commit c546afc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reader.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,9 @@ install_reader() {
9595
wget https://jihulab.com/aoaostar/legado/-/raw/release/cache/6c35d84798ddbf4aad3fe3f0fd6cec53dd788be8.json -O storage/data/default/bookSource.json
9696
# 判断是否合法json
9797
local first_character=$(head -c 1 "storage/data/default/bookSource.json")
98-
if [[ x"$first_character" == x"[" ]] then
98+
if [[ x"$first_character" == x"[" ]]; then
9999
#
100+
echo ""
100101
else
101102
echo -e "${red} 书源错误,已为您删除,请自行导入书源 ${plain}"
102103
echo "[]" > storage/data/default/bookSource.json

0 commit comments

Comments
 (0)