mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
chore(mac_brew_pkg): lint fixes and changelog add
This commit is contained in:
parent
4fddd04ed2
commit
8e7c528d17
2 changed files with 2 additions and 3 deletions
1
changelog/57946.fixed.md
Normal file
1
changelog/57946.fixed.md
Normal file
|
@ -0,0 +1 @@
|
|||
Use brew path from which in mac_brew_pkg module and rely on _homebrew_bin() everytime
|
|
@ -100,9 +100,7 @@ def _homebrew_bin():
|
|||
# Fetch PATH binary brew full path eg: /usr/local/bin/brew (symbolic link)
|
||||
brew = salt.utils.path.which("brew")
|
||||
# Fetch and ret brew installation folder full path eg: /opt/homebrew/bin/brew
|
||||
ret = __salt__["cmd.run"](
|
||||
f"{brew} --prefix", output_loglevel="trace"
|
||||
)
|
||||
ret = __salt__["cmd.run"](f"{brew} --prefix", output_loglevel="trace")
|
||||
ret += "/bin/brew"
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue