尝试修复不同系统下生成 QX task 清单时的兼容问题。
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user