User Controls

Stills trying to get used to shell scripting on osx, how the fuck can I simulated an enter press

  1. #1
    filtration African Astronaut
    This post has been edited by a bot I made to preserve my privacy.
  2. #2
    Lanny Bird of Courage
    Using `yes` you would do:


    yes "\n" | ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


    i.e. you need to supply a newline rather than the character y. You can also do:


    CI=TRUE ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


    Which is probably the more correct way. It does require you know the CI flag exists and that the script respects it, but CI is a pretty common env var these days, a defacto standard, and is generally scrips that can be run interactively but which you might want to implore to just do whatever they're supposed to do will respect it.
Jump to Top