From af56d17eab1f75ac38f216aa1ffa36ede8783eac Mon Sep 17 00:00:00 2001 From: Dave Cottlehuber Date: Mon, 26 May 2014 10:19:24 +0200 Subject: mobile-shell: teach mosh where the Cellar is for non-terminal use Closes #29583. Signed-off-by: Adam Vandenberg --- Library/Formula/mobile-shell.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/mobile-shell.rb b/Library/Formula/mobile-shell.rb index 04a076f43..7f957afea 100644 --- a/Library/Formula/mobile-shell.rb +++ b/Library/Formula/mobile-shell.rb @@ -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 -- cgit v1.2.3