Skip to content

Commit

Permalink
autoclose brew install terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfleischer committed Oct 27, 2023
1 parent 12b58a6 commit dc7010f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cloudmesh/common/Shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def install_brew():
print('test')

# command = 'NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"'
command = f'osascript -e \'tell application "Terminal" to do script "/bin/bash -c \\"export SUDO_ASKPASS={askpass} ; export NONINTERACTIVE=1 ; $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\\""\''
command = f'osascript -e \'tell application "Terminal" to do script "/bin/bash -c \\"export SUDO_ASKPASS={askpass} ; export NONINTERACTIVE=1 ; $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh) ; exit \\""\''
print(command)
# try:
subprocess.run(command, shell=True, check=True)
Expand All @@ -608,10 +608,10 @@ def install_brew():
stderr=subprocess.STDOUT,
shell=True)
Console.ok("Homebrew installed")
sleep(5)
sleep(8)
return True
except subprocess.CalledProcessError:
print('Waiting', end=' ')
# print('Waiting', end=' ')

sleep(2)
continue
Expand Down

0 comments on commit dc7010f

Please sign in to comment.