From 89f78f023a8b2d6cf9b7e71d543063cdf23b7ea8 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sun, 19 Dec 2021 13:30:07 +0100 Subject: [PATCH] Fix uptime detection on NetBSD --- eshell-info-banner.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eshell-info-banner.el b/eshell-info-banner.el index 14664dd..1a47334 100644 --- a/eshell-info-banner.el +++ b/eshell-info-banner.el @@ -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