fix(cli): remove set -e from bin/doom{,script}

This killed the script prematurely (without displaying the error) if
Emacs failed to execute. In versions prior to bash 4, set -e would not
terminate the script if a non-zero exit code occurred within a subshell,
but it will in bash 4+.

In any case, we don't need this fallback to begin with. The script
handles its errors sufficiently otherwise.
This commit is contained in:
Henrik Lissner 2022-06-22 01:23:39 +02:00
parent f0e8728bbc
commit 3ea9051890
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
2 changed files with 1 additions and 2 deletions

View file

@ -16,7 +16,6 @@
# $BASH_SOURCE to locate it would reduce its POSIX compliance). This shouldn't
# be an issue for folks writing their own CLIs, however.
set -e
case "$EMACS" in
*term*) EMACS=emacs ;;
*) EMACS="${EMACS:-emacs}" ;;