From 03017a84b4de90e27cfa2dc0d2be43a59645a316 Mon Sep 17 00:00:00 2001 From: XuehaiPan Date: Thu, 16 Sep 2021 21:18:06 +0800 Subject: [PATCH] style: move inplace flag to the front of argument list --- Library/Homebrew/style.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/style.rb b/Library/Homebrew/style.rb index 529dfa0c1c..5ea6f3d47e 100644 --- a/Library/Homebrew/style.rb +++ b/Library/Homebrew/style.rb @@ -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?