From 89d78ab312448ca890a2c5be38e7774e26957e12 Mon Sep 17 00:00:00 2001 From: ljf Date: Tue, 29 Jun 2021 18:50:05 +0200 Subject: [PATCH] [enh] Avoid to list hidden files --- access.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/access.lua b/access.lua index f85e1c0..9c0cd26 100644 --- a/access.lua +++ b/access.lua @@ -212,7 +212,7 @@ if is_logged_in then ["/ynh_overlay.css"] = "css/ynh_overlay.css" } theme_dir = "/usr/share/ssowat/portal/assets/themes/"..conf.theme - local pfile = io.popen('find "'..theme_dir..'" -type f -exec realpath --relative-to "'..theme_dir..'" {} \\;') + local pfile = io.popen('find "'..theme_dir..'" -not -path "*/\\.*" -type f -exec realpath --relative-to "'..theme_dir..'" {} \\;') for filename in pfile:lines() do assets["/ynhtheme/"..filename] = "themes/"..conf.theme.."/"..filename end