From 5bc1d13add6edd19ef924cafcdff8f7ea95348c7 Mon Sep 17 00:00:00 2001 From: EvineDeng Date: Thu, 21 Jan 2021 14:52:40 +0800 Subject: [PATCH] =?UTF-8?q?1.=20QX=20Rewrite=E6=B8=85=E5=8D=95=E5=B8=A6?= =?UTF-8?q?=E4=B8=8A=E6=B3=A8=E9=87=8A=EF=BC=9B2.=20QX=20Task=20=E5=B0=9D?= =?UTF-8?q?=E8=AF=95=E4=BF=AE=E5=A4=8D=E5=A4=9A=E6=8D=A2=E8=A1=8C=E7=AC=A6?= =?UTF-8?q?=E7=9A=84=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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/update_task.sh b/update_task.sh index e6eef5e2..d3dd3135 100644 --- a/update_task.sh +++ b/update_task.sh @@ -31,11 +31,12 @@ 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|(.+)|\1\",|}' >> $FileQx + grep -E "https://raw\.githubusercontent\.com.+tag.+enabled" $file | perl -pe '{s|(.+)|\1\",|; s|^| \"|}' >> $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 - grep -E "script-(request|response)-.+https://raw\.githubusercontent\.com" $file | perl -pe "s|(.+)|\n# \n\1|" >> $FileQxRe + grep -E "script-(request|response)-.+https://raw\.githubusercontent\.com" $file | perl -pe "s|(.+)|\n# $TaskName\n\1|" >> $FileQxRe + tmp=$(grep -E "script-(request|response)-.+https://raw\.githubusercontent\.com" $file) grep -E "type=http-(request|response).+pattern.+script-path.+https://raw\.githubusercontent\.com" $file >> $FileSurge done echo -e " ]\n}" >> $FileQx