mirror of https://github.com/djcb/mu.git
Merge pull request #1850 from juanjosegarciaripoll/fix-for-mu4e-proc-start
Do not use shell commands to extract version number
This commit is contained in:
commit
e9529c246c
|
@ -243,9 +243,9 @@ backslashes and double-quotes."
|
|||
"Cannot find mu, please set `mu4e-mu-binary' to the mu executable path"))
|
||||
|
||||
;; sanity-check 2
|
||||
(let ((version (shell-command-to-string
|
||||
(format "%s --version | head -1 | sed 's/.*version //' | tr -d '\n'"
|
||||
mu4e-mu-binary))))
|
||||
(let ((version (let ((s (shell-command-to-string (concat mu4e-mu-binary " --version"))))
|
||||
(and (string-match "version \\([.0-9]+\\)" s)
|
||||
(match-string 1 s)))))
|
||||
(unless (string= version mu4e-mu-version)
|
||||
(mu4e-error
|
||||
(concat
|
||||
|
|
Loading…
Reference in New Issue