fix style
This commit is contained in:
parent
01f865f93a
commit
84f288be79
@ -285,8 +285,7 @@ module Cask
|
|||||||
def find_launchctl_with_wildcard(search)
|
def find_launchctl_with_wildcard(search)
|
||||||
regex = Regexp.escape(search).gsub("\\*", ".*")
|
regex = Regexp.escape(search).gsub("\\*", ".*")
|
||||||
system_command!("/bin/launchctl", args: ["list"])
|
system_command!("/bin/launchctl", args: ["list"])
|
||||||
# skip stdout column headers
|
.stdout.lines.drop(1) # skip stdout column headers
|
||||||
.stdout.lines.drop(1)
|
|
||||||
.map do |line|
|
.map do |line|
|
||||||
pid, _state, id = line.chomp.split("\t")
|
pid, _state, id = line.chomp.split("\t")
|
||||||
id if pid.to_i.nonzero? && id.match?(regex)
|
id if pid.to_i.nonzero? && id.match?(regex)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user