From ff75adc291b0a8270283d9ff033f584281547174 Mon Sep 17 00:00:00 2001 From: anonymous Date: Tue, 2 Mar 2021 12:23:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E5=8D=95=E4=B8=AD=E5=8E=BB=E6=8E=89.b?= =?UTF-8?q?ak=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_list.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/update_list.sh b/update_list.sh index eb7d5126..123961fe 100644 --- a/update_list.sh +++ b/update_list.sh @@ -1,12 +1,12 @@ #!/usr/bin/env bash ## Author: https://github.com/EvineDeng -## Modified: 2021-02-23 -## Version: v1.0.3 +## Modified: 2021-03-02 +## Version: v1.0.4 ## 网址、路径、文件、标记信息以及表头 WorkDir=$(cd $(dirname $0); pwd) -JsList=($(cd $WorkDir; ls *.js | grep -E "j[drx]_")) +JsList=($(cd $WorkDir; ls *.js | grep -E "j[drx]_" | perl -ne "{print unless /\.bak/}")) FileReadme=$WorkDir/README.md UrlRaw=https://gitee.com/lxk0301/jd_scripts/raw/master/ SheetHead="| 序号 | 文件 | 名称 | 活动入口 |\n| :-: | - | - | - |" @@ -28,4 +28,4 @@ for ((i=0; i<${#JsList[*]}; i++)); do Raw="$UrlRaw${JsList[i]}" Sheet="$Sheet\n|$(($i + 1))|[${JsList[i]}]($Raw)|$Name|$Entry|" done -echo -e "$Sheet\n$Tail" >> $FileReadme \ No newline at end of file +echo -e "$Sheet\n$Tail" >> $FileReadme