add a list of files for wget etc

This commit is contained in:
Ville Rantanen
2020-04-27 17:08:04 +03:00
parent 813f5621be
commit 1eaa248eb5

View File

@@ -161,6 +161,7 @@ def get_wget_lines(files):
wget = "\n<!--\n" wget = "\n<!--\n"
for f in files: for f in files:
wget += "#FILE %s\n"%(urllib.quote(f),) wget += "#FILE %s\n"%(urllib.quote(f),)
wget += "#WGET URL=[insert URL] && curl $URL | grep '^#FILE ' | cut -c7- | sed \"s,^,$URL,\" | xargs -n1 wget\n"
wget += "-->\n" wget += "-->\n"
return wget return wget