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:
parent
e203309e5c
commit
c70b966850
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue