Skip to content

Commit

Permalink
fix shfmt command indentation flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dorianmariecom committed Sep 18, 2024
1 parent dea41d7 commit 48f6208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dorian/bin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@ def format(path, context:)
context.eval("format(#{path.to_json}, 'css')")
when :sh
if system("command -v shfmt > /dev/null 2>&1")
command = ["shfmt", "--indent", "4", path].shelljoin
command = ["shfmt", "-i", "4", path].shelljoin
stdout, stderr, status = Open3.capture3(command)
raise stderr unless stderr.empty? && status.success?

Expand Down

0 comments on commit 48f6208

Please sign in to comment.