Disable +pass-get-field in noninteractive session
Otherwise you'll get pass pinentry prompts in while byte compiling.
This commit is contained in:
parent
7e4a0dbe95
commit
ff9965e039
1 changed files with 6 additions and 5 deletions
|
@ -12,11 +12,12 @@
|
|||
|
||||
;;;###autoload
|
||||
(defun +pass-get-field (entry fields)
|
||||
(if-let (data (if (listp entry) entry (auth-pass-parse-entry entry)))
|
||||
(cl-loop for key in (doom-enlist fields)
|
||||
when (assoc key data)
|
||||
return (cdr it))
|
||||
(error "Couldn't find entry: %s" entry)))
|
||||
(unless noninteractive
|
||||
(if-let (data (if (listp entry) entry (auth-pass-parse-entry entry)))
|
||||
(cl-loop for key in (doom-enlist fields)
|
||||
when (assoc key data)
|
||||
return (cdr it))
|
||||
(error "Couldn't find entry: %s" entry))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +pass-get-user (entry)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue