diagnostic: tweak modified detection.
This commit is contained in:
parent
6bc1785c88
commit
1e3ddcade1
@ -665,8 +665,10 @@ module Homebrew
|
|||||||
|
|
||||||
modified = []
|
modified = []
|
||||||
HOMEBREW_REPOSITORY.cd do
|
HOMEBREW_REPOSITORY.cd do
|
||||||
modified.concat `git status --untracked-files=all --porcelain -- Library/Homebrew/ 2>/dev/null`.split("\n")
|
status = `git status --untracked-files=all --porcelain -- Library/Homebrew/ 2>/dev/null`
|
||||||
return if modified.empty?
|
return if status.blank?
|
||||||
|
|
||||||
|
modified = status.split("\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
message = <<~EOS
|
message = <<~EOS
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user