Skip to content

Commit

Permalink
corrected path
Browse files Browse the repository at this point in the history
  • Loading branch information
santipadilla committed Apr 2, 2024
1 parent b65bc2e commit 22bc000
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deps/wazuh_testing/wazuh_testing/tools/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ def install_package(self, host, url, system='ubuntu', use_npm=False):
cmd = f"npm install -g {url}"

if system == 'macos':
cmd = f"PATH=/opt/homebrew/bin:$PATH {cmd}"
cmd = f"PATH=/usr/local/bin:$PATH {cmd}"
shell_type = "shell"
elif system == 'windows':
shell_type = "win_shell"
Expand Down Expand Up @@ -546,7 +546,7 @@ def install_npm_package(self, host, url, system='ubuntu'):
cmd = f"npm install -g {url}"

if system == 'macos':
cmd = f"PATH=/opt/homebrew/bin:$PATH {cmd}"
cmd = f"PATH=/usr/local/bin:$PATH {cmd}"
shell_type = "shell"
elif system == 'windows':
shell_type = "win_shell"
Expand Down Expand Up @@ -632,7 +632,7 @@ def remove_package(self, host, system, package_uninstall_name=None, use_npm=Fals
cmd = f"npm uninstall -g {package_uninstall_name}"

if system == 'macos':
cmd = f"PATH=/opt/homebrew/bin:$PATH {cmd}"
cmd = f"PATH=/usr/local/bin:$PATH {cmd}"
shell_type = "shell"
elif system == 'windows':
shell_type = "win_shell"
Expand Down Expand Up @@ -696,7 +696,7 @@ def remove_npm_package(self, host, system, package_uninstall_name=None, custom_u
cmd = f"npm uninstall -g {package_uninstall_name}"

if system == 'macos':
cmd = f"PATH=/opt/homebrew/bin:$PATH {cmd}"
cmd = f"PATH=/usr/local/bin:$PATH {cmd}"
shell_type = "shell"
elif system == 'windows':
shell_type = "win_shell"
Expand Down

0 comments on commit 22bc000

Please sign in to comment.