We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b494aa6 commit c546afcCopy full SHA for c546afc
reader.sh
@@ -95,8 +95,9 @@ install_reader() {
95
wget https://jihulab.com/aoaostar/legado/-/raw/release/cache/6c35d84798ddbf4aad3fe3f0fd6cec53dd788be8.json -O storage/data/default/bookSource.json
96
# 判断是否合法json
97
local first_character=$(head -c 1 "storage/data/default/bookSource.json")
98
- if [[ x"$first_character" == x"[" ]] then
+ if [[ x"$first_character" == x"[" ]]; then
99
#
100
+ echo ""
101
else
102
echo -e "${red} 书源错误,已为您删除,请自行导入书源 ${plain}"
103
echo "[]" > storage/data/default/bookSource.json
0 commit comments