Merge pull request #159 from EvineDeng/master
Loon task 清单中,去除有注释但没有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
|
||||
@ -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
|
||||
|
Reference in New Issue
Block a user