[Utils] Fix directory name for ‘db/dired-from-shell-command’

Sometimes the string "Output of ‘…’" seems to be interpreted as directory name,
and then dired complains about it not being existent.  It is not completely
understood yet when this will happen, and an easy workaround seems to be to
stick to a fixed string that works.  This is what’s used now.
This commit is contained in:
Daniel Borchmann 2019-06-08 13:27:14 +02:00
parent 0e3ad47943
commit 57198f1e1a
Signed by: exot
GPG Key ID: 1C7071A75BB72D64

View File

@ -347,10 +347,7 @@ output, separated by \\n, when called with
(file-readable-p entry)))
(split-string (shell-command-to-string command)
"\n"))))
(if (null list-of-files)
(user-error "No files to display, aborting")
(dired (cons (format "Output of `%s" command)
list-of-files)))))
(dired (cons "Command output" list-of-files))))
;;; helm configuration