test -e instead of -d
This commit is contained in:
parent
3be5337c2e
commit
7dae897e79
@ -77,7 +77,7 @@ in
|
|||||||
wantURIs = concatMapStrings (entry: "${entryURI entry.path}\n") cfg.entries;
|
wantURIs = concatMapStrings (entry: "${entryURI entry.path}\n") cfg.entries;
|
||||||
createEntries = concatMapStrings (
|
createEntries = concatMapStrings (
|
||||||
entry:
|
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;
|
) cfg.entries;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user