bin/doom-doctor: refactor bash bootstrapper
This commit is contained in:
parent
bf3d35c287
commit
7cfab92f7c
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
":"; command -v emacs >/dev/null || { >&2 echo "Emacs isn't installed"; exit 1; } # -*-emacs-lisp-*-
|
":"; command -v emacs >/dev/null || { >&2 echo "Emacs isn't installed"; exit 1; } # -*-emacs-lisp-*-
|
||||||
":"; [[ $(emacs --version | head -n1) == *\ 2[0-2].[0-1].[0-9] ]] && { echo "You're running $(emacs --version | head -n1)"; echo "That version is too old to run the doctor. Check your PATH"; echo; exit 2; } || exec emacs --quick --script "$0"
|
":"; VERSION=$(emacs --version | head -n1)
|
||||||
|
":"; [[ $VERSION == *\ 2[0-2].[0-1].[0-9] ]] && { echo "You're running $VERSION"; echo "That version is too old to run the doctor. Check your PATH"; echo; exit 2; }
|
||||||
|
":"; exec emacs --quick --script "$0"; exit 0
|
||||||
|
|
||||||
;; Uses a couple simple heuristics to locate issues with your environment that
|
;; Uses a couple simple heuristics to locate issues with your environment that
|
||||||
;; could interfere with running or setting up DOOM Emacs.
|
;; could interfere with running or setting up DOOM Emacs.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue