test -e instead of -d

This commit is contained in:
Olaf 2025-05-08 11:13:39 +02:00
parent 3be5337c2e
commit 7dae897e79

View File

@ -77,7 +77,7 @@ in
wantURIs = concatMapStrings (entry: "${entryURI entry.path}\n") cfg.entries;
createEntries = concatMapStrings (
entry:
"if [ -d '${entry.path}' ]; then ${dockutil}/bin/dockutil --no-restart --add '${entry.path}' --section ${entry.section} ${entry.options} ; fi \n "
"if [ -e '${entry.path}' ]; then ${dockutil}/bin/dockutil --no-restart --add '${entry.path}' --section ${entry.section} ${entry.options} ; fi \n "
) cfg.entries;
in
{