mirror of
https://github.com/chinnkarahoi/jd_scripts.git
synced 2024-06-05 19:32:47 +08:00
尝试修复不同系统下生成 QX task 清单时的兼容问题。
This commit is contained in:
parent
1c57cf804d
commit
ed81dc2bbb
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user