Sha256: 8a6d236eabd1ecfe79032feaed5b3a5730ece3c2b6e0a2d10221b66777f9a8df

Contents?: true

Size: 536 Bytes

Versions: 1

Compression:

Stored size: 536 Bytes

Contents

#!/usr/bin/env bash

read -s -p "Password:" password
echo

install_url=https://raw.githubusercontent.com/Homebrew/install/master/install
temp_script=/tmp/brew_installer

# FIXME: This is not intended saving. I don't know how to spawn: ruby -e "$(..)"
curl -fsSL $install_url > $temp_script

expect -c '
set timeout -1
spawn ruby /tmp/brew_installer

expect {
  "Press RETURN to continue or any other key to abort"
  {
    send "\r"
    exp_continue
  }
  "Password:"
  {
    send "$password\r"
    exp_continue
  }
}
'

rm $temp_script

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rebuild-0.3.0.pre6 script/homebrew.sh