From 63f84081bbdc9dad9343b3b83541883ed1ea3125 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 21 May 2017 20:36:48 +0200 Subject: [PATCH] Fix bash 'shebang' for bin/doctor (ew) --- bin/doctor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/doctor b/bin/doctor index d1fbfdad9..0df003d61 100755 --- a/bin/doctor +++ b/bin/doctor @@ -1,6 +1,6 @@ #!/usr/bin/env bash ":"; command -v emacs >/dev/null || { >&2 echo "Emacs isn't installed"; exit 1; } -":"; [[ $(emacs --version | head -n1) == *\ 2[0-2].[0-1].[0-9] ]] && echo 'Emacs version is too old, check your PATH' || exec emacs --no-site-file --batch -l "$0" # -*-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 --no-site-file --batch -l "$0" # -*-emacs-lisp-*- ;; Uses a couple simple heuristics to locate issues with your environment that ;; could interfere with running or setting up DOOM Emacs.