mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
bin/doom: improve POSIX compliance
+ The bourne shell does not guarantee it'll understand the new $() subshell syntax. + Can't rely on set -e to short circuit the script. No avoiding the roundabout suppression of the postscript error with '&& true'. Might fix #3844, but doubt it.
This commit is contained in:
2
bin/doom
2
bin/doom
@ -3,7 +3,7 @@
|
||||
:; case "$EMACS" in *term*) EMACS=emacs ;; *) EMACS="${EMACS:-emacs}" ;; esac
|
||||
:; $EMACS --version >/dev/null 2>&1 || { >&2 echo "Can't find emacs in your PATH"; exit 1; }
|
||||
:; $EMACS --no-site-file --script "$0" -- "$@" || __DOOMCODE=$?
|
||||
:; [ "${__DOOMCODE:-0}" -eq 128 ] && "$(emacs -Q --batch --eval '(princ temporary-file-directory)')/doom.sh" "$0" "$@"
|
||||
:; [ "${__DOOMCODE:-0}" -eq 128 ] && { "`$EMACS -Q --batch --eval '(princ temporary-file-directory)'`/doom.sh" "$0" "$@" && true; __DOOMCODE=$?; }
|
||||
:; exit $__DOOMCODE
|
||||
|
||||
;; The garbage collector isn't important during CLI ops. A higher threshold
|
||||
|
Reference in New Issue
Block a user