From 772f9f26d9d582b0355008a245dbc6851821a96d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 23 Sep 2022 18:14:06 +0200 Subject: [PATCH] fix: prevent error on tagless doom-version This would throw an error when we eventually drop the -pre tag in doom-version. --- lisp/doom-profiles.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/doom-profiles.el b/lisp/doom-profiles.el index 04f7dc4ee..4deeb9469 100644 --- a/lisp/doom-profiles.el +++ b/lisp/doom-profiles.el @@ -381,7 +381,7 @@ Defaults to the profile at `doom-profile-default'." '(major ,(nth 0 v) minor ,(nth 1 v) build ,(nth 2 v) - tag ,(cadr (split-string doom-version "-" t)) + tag ,(ignore-errors (cadr (split-string doom-version "-" t))) ref ,(if (zerop (car ref)) (cdr ref)) branch ,(if (zerop (car branch)) (cdr branch))))))))