安装自制软件的非常简单的脚本:
#!/bin/bash
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Run Code Online (Sandbox Code Playgroud)
输出给出:
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
Press RETURN to continue or any other key to abort
Run Code Online (Sandbox Code Playgroud)
如何在这样的脚本中按Enter键?期望是最好的路线?