From c70b9668507c32e1f551386f7fe2ba0fc5a7756e Mon Sep 17 00:00:00 2001 From: Byungwan Jun Date: Tue, 21 May 2024 17:32:26 +0900 Subject: [PATCH] fix(cli): auto-generated script error The auto-generated script has bom characters on my mac. if bin/doom exits with code 254, it gives me the below error: `.../doom.123.0.sh: line 1: #!/usr/bin/env: No such file or directory` --- lisp/doom-cli.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/doom-cli.el b/lisp/doom-cli.el index eab017d69..cef7faab0 100644 --- a/lisp/doom-cli.el +++ b/lisp/doom-cli.el @@ -1350,7 +1350,7 @@ ARGS are options passed to less. If DOOMPAGER is set, ARGS are ignored." (doom-cli--exit 0 context)) ((let ((tmpfile (doom-cli--output-file 'output context)) - (coding-system-for-write 'utf-8-auto)) + (coding-system-for-write 'utf-8)) (with-file-modes #o700 (make-directory (file-name-directory tmpfile) t)) (with-file-modes #o600