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`
This commit is contained in:
Byungwan Jun 2024-05-21 17:32:26 +09:00 committed by Henrik Lissner
parent e203309e5c
commit c70b966850

View file

@ -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