zplug 2.2.1
fix the test Closes #4180. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
aaa0e0b0ff
commit
d9a52916bd
1 changed files with 5 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
|||
class Zplug < Formula
|
||||
desc "The next-generation plugin manager for zsh"
|
||||
homepage "https://zplug.sh/"
|
||||
url "https://github.com/zplug/zplug/archive/2.1.0.tar.gz"
|
||||
sha256 "fbaf44c76151d1b2340fc9cf7cf2833682acc87952de63b3c0ba73a385cd0ea1"
|
||||
url "https://github.com/zplug/zplug/archive/2.2.1.tar.gz"
|
||||
sha256 "c78ea93dc5ef9f6d3b9d93f4c06bbd27940dd67068e33783f6931515a0f44f97"
|
||||
head "https://github.com/zplug/zplug.git"
|
||||
|
||||
bottle :unneeded
|
||||
|
@ -13,6 +13,7 @@ class Zplug < Formula
|
|||
bin.install Dir["bin/*"]
|
||||
man1.install "doc/man/man1/zplug.1"
|
||||
prefix.install Dir["*"]
|
||||
touch prefix/"packages.zsh"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
|
@ -23,6 +24,7 @@ class Zplug < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
shell_output("zsh -c \"source #{opt_prefix}/init.zsh && (( $+functions[zplug] ))\"")
|
||||
ENV["ZPLUG_HOME"] = opt_prefix
|
||||
system "zsh", "-c", "source #{opt_prefix}/init.zsh && (( $+functions[zplug] ))"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue