Skip to content

Commit

Permalink
新增版本检测文件
Browse files Browse the repository at this point in the history
  • Loading branch information
kdxhub committed Aug 31, 2024
1 parent 7d0cb48 commit 4a827af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions client/pixiv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
# All right reserved.
# 详见https://kdx233.github.io/licen

# 更新检测
ver=2 & {
IFS=';' read -ra updataInfo <<< $(curl -L https://kdxiaoyi.top/pixiv.re_ui/client/pixiv.sh.version)
}
# 帮助文本
ver=2
if [ "1$(echo "$1" | grep "h")" != "1" ];then
echo Pixiv 插画批量下载
echo ver.${ver}
Expand Down Expand Up @@ -88,8 +91,8 @@ if [ "testr$3" == "testr" ];then
echo " → 作品${id}含有${all}张插图
主人是想怎么狠狠的下载呢?
[1] 全部下载(默认)
[2] 指定下载部分
[0] 取消下载"
[2] 指定下载部分(没做)
[0] 取消"
read -n 1 -p "选择下载方式> " choice
if [ "a$choice" == "a0" ];then exit 0;
elif [ "a$choice" == "a2" ];then mode=part;
Expand Down
1 change: 1 addition & 0 deletions client/pixiv.sh.version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3§https://kdxiaoyi.top/pixiv.re_ui/client/pixiv.sh§新增在线更新检测功能

0 comments on commit 4a827af

Please sign in to comment.