commit 0f0eae721d0812e461b519d7c7c8345c1e41e1b5
parent 088701da0b2c1d66a07ac20d4d0c356f9a8a1f34
Author: Lou Woell <lou.woell@posteo.de>
Date: Thu, 4 Sep 2025 15:26:57 +0200
[haredoc.el] check for empty shell return value
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/haredoc.el b/haredoc.el
@@ -36,7 +36,8 @@
(defvar hare/helperbin (concat hare/helperbindir "/harehelper"))
(defun hh/exec (strings)
- (shell-command-to-string (string-join strings " ")))
+ (let ((res (shell-command-to-string (string-join strings " "))))
+ (if (string= res "") nil res)))
(defun hare/get-modules ()
"Return list of Hare modules."