branch: master
commit 9e56a92868e5eb8d7c6fd6d68157e144ac6b508f
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
counsel.el (counsel-require-program): Return result
---
counsel.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/counsel.el b/counsel.el
index a84b25f..639b6e0 100644
--- a/counsel.el
+++ b/counsel.el
@@ -88,10 +88,10 @@
(defun counsel-require-program (program)
"Check system for PROGRAM, printing error if unfound."
- (when (and (stringp program)
- (not (string= program ""))
- (not (executable-find program)))
- (user-error "Required program \"%s\" not found in your path" program)))
+ (or (and (stringp program)
+ (not (string= program ""))
+ (executable-find program))
+ (user-error "Required program \"%s\" not found in your path" program)))
;;* Async Utility
(defvar counsel--async-time nil