Skip to content

Commit

Permalink
oauth2_proxy: add HEAD.
Browse files Browse the repository at this point in the history
Also: use string interpolation.

Closes Homebrew#42880.

Signed-off-by: Mike McQuaid <[email protected]>
  • Loading branch information
ebardsley authored and MikeMcQuaid committed Aug 13, 2015
1 parent b195d39 commit 3acaf11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Formula/oauth2_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Oauth2Proxy < Formula
homepage "https://github.com/bitly/oauth2_proxy"
url "https://github.com/bitly/oauth2_proxy/archive/v2.0.1.tar.gz"
sha256 "febc33244d63f69a4c973e4ff2556fea2bc414308ce9979fb43db5863da87b5a"
head "https://github.com/bitly/oauth2_proxy.git"

bottle do
cellar :any
Expand Down Expand Up @@ -73,7 +74,7 @@ def caveats; <<-EOS.undent
begin
Timeout.timeout(10) do
loop do
Utils.popen_read "curl", "-s", "https://127.0.0.1:" + port.to_s
Utils.popen_read "curl", "-s", "https://127.0.0.1:#{port}"
break if $?.exitstatus == 0
sleep 1
end
Expand Down

0 comments on commit 3acaf11

Please sign in to comment.