From 7dae897e796b9459960adadc10096b0e3a9dd28c Mon Sep 17 00:00:00 2001 From: Olaf Date: Thu, 8 May 2025 11:13:39 +0200 Subject: [PATCH] test -e instead of -d --- modules/darwin/dock/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/darwin/dock/default.nix b/modules/darwin/dock/default.nix index 6741ae8..2fc3be3 100644 --- a/modules/darwin/dock/default.nix +++ b/modules/darwin/dock/default.nix @@ -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 {