Merge pull request #167 from YunoHost/fix-custom_overlay

fix theme loading
This commit is contained in:
Alexandre Aubin 2020-06-18 15:01:29 +02:00 committed by GitHub
commit 3b056bed76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -272,7 +272,7 @@ end
function scandir(directory, callback) function scandir(directory, callback)
-- use find (and not ls) to list only files recursively and with their full path relative to the asked directory -- use find (and not ls) to list only files recursively and with their full path relative to the asked directory
local pfile = io.popen('find "'..directory..'" -type f') local pfile = io.popen('find "'..directory..'" -type f -printf \"%f\n\"')
for filename in pfile:lines() do for filename in pfile:lines() do
callback(filename) callback(filename)
end end