diff options
Diffstat (limited to '')
-rw-r--r-- | contrib/emacs/password-store.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/emacs/password-store.el b/contrib/emacs/password-store.el index 4733ddc..e02d4d7 100644 --- a/contrib/emacs/password-store.el +++ b/contrib/emacs/password-store.el @@ -31,6 +31,7 @@ ;;; Code: +(require 'dash) (require 'f) (require 's) @@ -47,14 +48,14 @@ (defun password-store--run (&rest args) "Run pass with ARGS. -Returns the output on success, or outputs error message on -failure." +Nil arguments are ignored. Returns the output on success, or +outputs error message on failure." (with-temp-buffer (let ((exit-code (apply 'call-process (append (list password-store-executable nil (current-buffer) nil) - args)))) + (-reject 'null args))))) (if (zerop exit-code) (buffer-string) (error (s-chomp (buffer-string))))))) |