aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mobile-shell.rb
diff options
context:
space:
mode:
authorDave Cottlehuber2014-05-26 10:19:24 +0200
committerAdam Vandenberg2014-05-26 08:58:07 -0700
commitaf56d17eab1f75ac38f216aa1ffa36ede8783eac (patch)
tree636bc6fb14312ac94c58f9fed0e645aa7ca3d394 /Library/Formula/mobile-shell.rb
parent2060ee84b20a43fd18a132a0bce5406db64b5255 (diff)
downloadhomebrew-af56d17eab1f75ac38f216aa1ffa36ede8783eac.tar.bz2
mobile-shell: teach mosh where the Cellar is for non-terminal use
Closes #29583. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/mobile-shell.rb')
-rw-r--r--Library/Formula/mobile-shell.rb4
1 files changed, 4 insertions, 0 deletions
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