osx - Unattended (no-prompt) Homebrew installation using expect -


according homebrew installation instructions, following command can used install:

ruby -e "$(curl -fssl https://raw.github.com/homebrew/homebrew/go/install)" 

this works, needs user input 2 times; confirm install , in sudo prompt invoked script:

$ ruby -e "$(curl -fssl https://raw.github.com/homebrew/homebrew/go/install)" ==> script install: /usr/local/bin/brew /usr/local/library/... /usr/local/share/man/man1/brew.1  press return continue or other key abort ==> /usr/bin/sudo /bin/mkdir /usr/local password: 

homebrew doesn't have arguments unattended installations, option can think of programatically input expected data. tried using expect, can't quite syntax right:

$ expect -c 'spawn ruby -e \"\$(curl -fssl https://raw.github.com/homebrew/homebrew/go/install)\";expect "return";send "\n"' ruby: invalid option -f  (-h show valid options) (runtimeerror) send: spawn id exp7 not open     while executing "send "\n"" 

what doing wrong?


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -