From 1c57cf804d46263031157e6425798972b74e7cb2 Mon Sep 17 00:00:00 2001 From: any Date: Thu, 21 Jan 2021 14:20:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?Loon=20task=20=E6=B8=85=E5=8D=95=E4=B8=AD?= =?UTF-8?q?=EF=BC=8C=E5=8E=BB=E9=99=A4=E6=9C=89=E6=B3=A8=E9=87=8A=E4=BD=86?= =?UTF-8?q?=E6=B2=A1=E6=9C=89task=E7=9A=84=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_task.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_task.sh b/update_task.sh index c5283fad..13661923 100644 --- a/update_task.sh +++ b/update_task.sh @@ -40,4 +40,4 @@ do done echo -e " ]\n}" >> $FileQx perl -0777 -i -pe "s|,(\n \])|\1|" $FileQx - +perl -0777 -i -pe "s|# .+\n{2}(# .+)|\1|g" $FileLoon From ed81dc2bbb8c1466153e9f2193e8a7316cf61033 Mon Sep 17 00:00:00 2001 From: any Date: Thu, 21 Jan 2021 14:27:37 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=B8=8D=E5=90=8C=E7=B3=BB=E7=BB=9F=E4=B8=8B=E7=94=9F=E6=88=90?= =?UTF-8?q?=20QX=20task=20=E6=B8=85=E5=8D=95=E6=97=B6=E7=9A=84=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_task.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_task.sh b/update_task.sh index 13661923..e6eef5e2 100644 --- a/update_task.sh +++ b/update_task.sh @@ -31,7 +31,7 @@ do if [[ -n $TaskName ]]; then echo -e "\n# $TaskName" >> $FileLoon grep -E "cron.+script-path.+https://raw\.githubusercontent\.com.+tag" $file >> $FileLoon - grep -E "https://raw\.githubusercontent\.com.+tag.+enabled" $file | perl -pe '{s|^| \"|; s|$|\",|}' >> $FileQx + grep -E "https://raw\.githubusercontent\.com.+tag.+enabled" $file | perl -pe '{s|^| \"|; s|(.+)|\1\",|}' >> $FileQx grep -E "type.+cronexp.+script-path.+https://raw\.githubusercontent\.com" $file >> $FileSurge fi grep -E "http-(request|response).+script-path.+https://raw\.githubusercontent\.com.+tag" $file | perl -pe "s|(.+tag=)(.+)|\n# \2\n\1\2|">> $FileLoon