fix: prevent error on tagless doom-version

This would throw an error when we eventually drop the -pre tag in
doom-version.
This commit is contained in:
Henrik Lissner 2022-09-23 18:14:06 +02:00
parent 19f9e1fdd7
commit 772f9f26d9
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -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))))))))