mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
bin/doom-doctor POSIX compliance
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/sh
|
||||||
":"; 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-*-
|
||||||
":"; VERSION=$(emacs --version | head -n1)
|
":"; 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; }
|
":"; case $VERSION in *\ 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 ;; esac
|
||||||
":"; exec emacs --quick --script "$0"; exit 0
|
":"; exec emacs --quick --script "$0"; exit 0
|
||||||
|
|
||||||
;; The Doom doctor is essentially one big, self-contained elisp shell script
|
;; The Doom doctor is essentially one big, self-contained elisp shell script
|
||||||
|
Reference in New Issue
Block a user