mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Disable +pass-get-field in noninteractive session
Otherwise you'll get pass pinentry prompts in while byte compiling.
This commit is contained in:
@ -12,11 +12,12 @@
|
|||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +pass-get-field (entry fields)
|
(defun +pass-get-field (entry fields)
|
||||||
(if-let (data (if (listp entry) entry (auth-pass-parse-entry entry)))
|
(unless noninteractive
|
||||||
(cl-loop for key in (doom-enlist fields)
|
(if-let (data (if (listp entry) entry (auth-pass-parse-entry entry)))
|
||||||
when (assoc key data)
|
(cl-loop for key in (doom-enlist fields)
|
||||||
return (cdr it))
|
when (assoc key data)
|
||||||
(error "Couldn't find entry: %s" entry)))
|
return (cdr it))
|
||||||
|
(error "Couldn't find entry: %s" entry))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +pass-get-user (entry)
|
(defun +pass-get-user (entry)
|
||||||
|
Reference in New Issue
Block a user