nit(cli): tidy comments & correct grammar in error
This commit is contained in:
parent
2383e924c0
commit
085b5563fc
1 changed files with 3 additions and 5 deletions
4
bin/doom
4
bin/doom
|
@ -89,12 +89,10 @@
|
||||||
;; root, in which case we assume the user genuinely wants root to be their
|
;; root, in which case we assume the user genuinely wants root to be their
|
||||||
;; primary user account for Emacs.
|
;; primary user account for Emacs.
|
||||||
(when (equal (user-real-uid) 0)
|
(when (equal (user-real-uid) 0)
|
||||||
;; If ~/.emacs.d is owned by root, assume the user genuinely wants root to be
|
|
||||||
;; their primary user, otherwise complain.
|
|
||||||
(unless (= 0 (file-attribute-user-id (file-attributes user-emacs-directory)))
|
(unless (= 0 (file-attribute-user-id (file-attributes user-emacs-directory)))
|
||||||
(message
|
(message
|
||||||
(concat
|
(concat
|
||||||
"Error: this script is being run as root, which is likely not what you want.\n"
|
"Error: this script was executed as root, which is likely not what you want.\n"
|
||||||
"It will cause file permissions errors later, when you run Doom as another\n"
|
"It will cause file permissions errors later, when you run Doom as another\n"
|
||||||
"user.\n\n"
|
"user.\n\n"
|
||||||
"If this really *is* what you want, then change the owner of your Emacs\n"
|
"If this really *is* what you want, then change the owner of your Emacs\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue