Fix uptime detection on NetBSD

This commit is contained in:
Lucien Cartier-Tilet 2021-12-19 13:30:07 +01:00
parent 6ec3280a8d
commit 89f78f023a
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ If the executable `uptime' is not found, return nil."
(let ((uptime-str (eshell-info-banner--shell-command-to-string "uptime -p")))
(if (not (seq-some (lambda (keyword)
(string-match-p keyword uptime-str))
'("invalid" "illegal")))
'("invalid" "illegal" "unknown")))
(s-chop-prefix "up " (s-trim uptime-str))
(let ((uptime-str (eshell-info-banner--shell-command-to-string "uptime")))
(save-match-data