more efficient image updating

This commit is contained in:
sejo 2022-03-28 16:49:58 -06:00
parent c76ece0395
commit f1febf6e73
1 changed files with 2 additions and 6 deletions

View File

@ -505,12 +505,8 @@ os.execute(string.format("find %s -iname *.gmi -exec rm {} \\;", gemdir))
-- copy images
print("copiando imágenes y otros archivos...")
local imgs = io.popen("ls src/img/")
for img in imgs:lines() do
os.execute(string.format("cp -vu src/img/%s %s/img/", img, webdir))
os.execute(string.format("cp -vu src/img/%s %s/img/", img, gemdir))
end
imgs:close()
os.execute( string.format("find src/img/ -type f -exec cp -vut %s/img/ {} +",webdir))
os.execute( string.format("find src/img/ -type f -exec cp -vut %s/img/ {} +",gemdir))
-- copy stylesheet and misc files
os.execute(string.format("cp -vu templates/estilo.css %s/static/",webdir))