style: move inplace flag to the front of argument list

This commit is contained in:
XuehaiPan 2021-09-16 21:18:06 +08:00
parent d5a15cf289
commit 03017a84b4

View File

@ -229,7 +229,7 @@ module Homebrew
args = ["-i", "2", "-ci", "-ln", "bash", "--", *files] args = ["-i", "2", "-ci", "-ln", "bash", "--", *files]
# Do inplace fixing # Do inplace fixing
args << "-w" if fix args.unshift("-w") if fix # need to add before "--"
system shfmt, *args system shfmt, *args
$CHILD_STATUS.success? $CHILD_STATUS.success?