summaryrefslogtreecommitdiffstats
path: root/main/alpine-mirrors/gen-txt.lua
blob: cfda91fa8ea0635afc306b57c49d9d44a6f72e68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/lua

yaml = require('yaml')

data = yaml.load(io.stdin:read("*all"))
for _,m in pairs(data) do
	for _,url in pairs(m.urls) do
		if (url):match("^http://") then
			print(url)
		end
	end
end