aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-03-28 12:59:49 +0800
committerXu Cheng2015-03-28 13:01:44 +0800
commit3b9101f887fbe8865d9bea1ac9b2fb9b793ead02 (patch)
tree331f959ce8967aa04c0ec1563242a9b26d2d6839 /Library
parent1304a2b29a3de5da2b31e1656bf772eea2a78dc1 (diff)
downloadhomebrew-3b9101f887fbe8865d9bea1ac9b2fb9b793ead02.tar.bz2
keybase: remove self-update command
Closes #38090. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/keybase.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Formula/keybase.rb b/Library/Formula/keybase.rb
index 52e182bc9..b12e2cea7 100644
--- a/Library/Formula/keybase.rb
+++ b/Library/Formula/keybase.rb
@@ -1,13 +1,19 @@
class Keybase < Formula
homepage "https://keybase.io/"
url "https://github.com/keybase/node-client/archive/v0.7.7.tar.gz"
- sha1 "360f0c621adb9f74bb74893880f42e09a6dd36c3"
+ sha256 "ae08423181867d071b23acb3f359b7341532290014eb42775eb7384a7ea757dc"
head "https://github.com/keybase/node-client.git"
depends_on "node"
depends_on :gpg
def install
+ # remove self-update command
+ # https://github.com/keybase/keybase-issues/issues/1477
+ rm "lib/command/update.js"
+ inreplace "lib/command/all.js", '"update", ', ""
+ inreplace "lib/req.js", "keybase-installer", "brew update && brew upgrade keybase"
+
libexec.install Dir["*"]
(bin/"keybase").write <<-EOS.undent
#!/bin/sh