Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check curl before use it #4158

Merged
merged 6 commits into from
Feb 11, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions hack/lib/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ kube::util::wait_for_url() {
local wait=${3:-0.2}
local times=${4:-10}

which curl >/dev/null || {
kube::log::usage "curl must be installed"
exit 1
}

local i

for i in $(seq 1 $times); do
local out
if out=$(curl -fs $url 2>/dev/null); then
Expand Down