style: move inplace flag to the front of argument list
This commit is contained in:
parent
d5a15cf289
commit
03017a84b4
@ -229,7 +229,7 @@ module Homebrew
|
||||
args = ["-i", "2", "-ci", "-ln", "bash", "--", *files]
|
||||
|
||||
# Do inplace fixing
|
||||
args << "-w" if fix
|
||||
args.unshift("-w") if fix # need to add before "--"
|
||||
|
||||
system shfmt, *args
|
||||
$CHILD_STATUS.success?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user