zplug 2.2.1

fix the test

Closes #4180.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2016-09-04 02:57:35 -07:00
parent aaa0e0b0ff
commit d9a52916bd

View file

@ -1,8 +1,8 @@
class Zplug < Formula class Zplug < Formula
desc "The next-generation plugin manager for zsh" desc "The next-generation plugin manager for zsh"
homepage "https://zplug.sh/" homepage "https://zplug.sh/"
url "https://github.com/zplug/zplug/archive/2.1.0.tar.gz" url "https://github.com/zplug/zplug/archive/2.2.1.tar.gz"
sha256 "fbaf44c76151d1b2340fc9cf7cf2833682acc87952de63b3c0ba73a385cd0ea1" sha256 "c78ea93dc5ef9f6d3b9d93f4c06bbd27940dd67068e33783f6931515a0f44f97"
head "https://github.com/zplug/zplug.git" head "https://github.com/zplug/zplug.git"
bottle :unneeded bottle :unneeded
@ -13,6 +13,7 @@ class Zplug < Formula
bin.install Dir["bin/*"] bin.install Dir["bin/*"]
man1.install "doc/man/man1/zplug.1" man1.install "doc/man/man1/zplug.1"
prefix.install Dir["*"] prefix.install Dir["*"]
touch prefix/"packages.zsh"
end end
def caveats; <<-EOS.undent def caveats; <<-EOS.undent
@ -23,6 +24,7 @@ class Zplug < Formula
end end
test do 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
end end