mosh: avoid patch for head (#43349)

This commit is contained in:
Yuji Shen 2019-08-26 18:31:29 -04:00 committed by FX Coudert
parent 488e43bb32
commit 401b254078

View file

@ -24,9 +24,11 @@ class Mosh < Formula
depends_on "protobuf"
# Fix mojave build.
patch do
url "https://github.com/mobile-shell/mosh/commit/e5f8a826ef9ff5da4cfce3bb8151f9526ec19db0.patch?full_index=1"
sha256 "022bf82de1179b2ceb7dc6ae7b922961dfacd52fbccc30472c527cb7c87c96f0"
unless build.head?
patch do
url "https://github.com/mobile-shell/mosh/commit/e5f8a826ef9ff5da4cfce3bb8151f9526ec19db0.patch?full_index=1"
sha256 "022bf82de1179b2ceb7dc6ae7b922961dfacd52fbccc30472c527cb7c87c96f0"
end
end
def install