bin/doom: demote missing -p path error to warning
The error would prevent bin/doom quickstart from working with a custom private directory. Instead, just warn that it doesn't exist. Fixes #974
This commit is contained in:
parent
915467cb13
commit
0d902e8cf1
1 changed files with 4 additions and 3 deletions
7
bin/doom
7
bin/doom
|
@ -55,10 +55,11 @@
|
|||
(message "Insecure mode on"))
|
||||
((or "-p" "--private")
|
||||
(setq doom-private-dir (expand-file-name (concat (pop args) "/")))
|
||||
(or (file-directory-p doom-private-dir)
|
||||
(error "%s does not exist" doom-private-dir))
|
||||
(setenv "DOOMDIR" doom-private-dir)
|
||||
(message "DOOMDIR changed to %s" doom-private-dir))
|
||||
(message "DOOMDIR changed to %s" doom-private-dir)
|
||||
(or (file-directory-p doom-private-dir)
|
||||
(message "Warning: %s does not exist"
|
||||
(abbreviate-file-name doom-private-dir))))
|
||||
((or "-e" "--emacsd")
|
||||
(setq emacs-dir (expand-file-name (concat (pop args) "/")))
|
||||
(message "Emacs directory changed to %s" emacs-dir))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue