Skip to content

Commit

Permalink
towards mac brew
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfleischer committed Oct 26, 2023
1 parent be9fd4f commit 2bca832
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cloudmesh/common/Shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,9 @@ def install_brew():
Console.info("Installing Homebrew...")


command = 'NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"'
command = '''
osascript -e 'do shell script "NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" with administrator privileges'
'''

try:
subprocess.run(command, shell=True, check=True)
Expand Down

0 comments on commit 2bca832

Please sign in to comment.