mobile-shell: teach mosh where the Cellar is for non-terminal use

Closes Homebrew/homebrew#29583.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Dave Cottlehuber 2014-05-26 10:19:24 +02:00 committed by Adam Vandenberg
parent 2b5e30c3ea
commit 779d8c9125
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,10 @@ class MobileShell < Formula
def install
system "./autogen.sh" if build.head?
# teach mosh to locate mosh-client without referring
# PATH to support launching outside shell e.g. via launcher
inreplace "scripts/mosh", "'mosh-client", "\'#{bin}/mosh-client"
# Upstream prefers O2:
# https://github.com/keithw/mosh/blob/master/README.md
ENV.O2