-f flag is not available anymore in beautysh

This commit is contained in:
francois90 2021-06-11 18:22:50 +00:00 committed by GitHub
parent 41d5051b39
commit 6c2462af7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ module.exports = class BashBeautify extends Beautifier
file = @tempFile("input", text) file = @tempFile("input", text)
tabs = options.indent_with_tabs tabs = options.indent_with_tabs
if tabs is true if tabs is true
beautysh.run([ '-t', '-f', file ]) beautysh.run([ '-t', file ])
.then(=> @readFile file) .then(=> @readFile file)
else else
beautysh.run([ '-i', options.indent_size, '-f', file ]) beautysh.run([ '-i', options.indent_size, file ])
.then(=> @readFile file) .then(=> @readFile file)