Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
21c0391e
Commit
21c0391e
authored
Aug 18, 2017
by
Taylor Thomas
Committed by
GitHub
Aug 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2803 from hobti01/patch-2
Fix curl error Failed writing body
parents
a736c2a3
b914958b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
get
scripts/get
+2
-2
No files found.
scripts/get
View file @
21c0391e
...
@@ -78,9 +78,9 @@ checkDesiredVersion() {
...
@@ -78,9 +78,9 @@ checkDesiredVersion() {
# Use the GitHub releases webpage for the project to find the desired version for this project.
# Use the GitHub releases webpage for the project to find the desired version for this project.
local
release_url
=
"https://github.com/kubernetes/helm/releases/
${
DESIRED_VERSION
:-
latest
}
"
local
release_url
=
"https://github.com/kubernetes/helm/releases/
${
DESIRED_VERSION
:-
latest
}
"
if
type
"curl"
>
/dev/null
;
then
if
type
"curl"
>
/dev/null
;
then
TAG
=
$(
curl
-SsL
$release_url
|
awk
'/\/tag\//'
|
head
-n
1 |
cut
-d
'"'
-f
2 |
awk
'{n=split($NF,a,"/");print a[n]
}'
)
TAG
=
$(
curl
-SsL
$release_url
|
awk
'/\/tag\//'
|
cut
-d
'"'
-f
2 |
awk
'{n=split($NF,a,"/");print a[n]}'
|
awk
'a !~ $0{print}; {a=$0
}'
)
elif
type
"wget"
>
/dev/null
;
then
elif
type
"wget"
>
/dev/null
;
then
TAG
=
$(
wget
-q
-O
-
$release_url
|
awk
'/\/tag\//'
|
head
-n
1 |
cut
-d
'"'
-f
2 |
awk
'{n=split($NF,a,"/");print a[n]
}'
)
TAG
=
$(
wget
-q
-O
-
$release_url
|
awk
'/\/tag\//'
|
cut
-d
'"'
-f
2 |
awk
'{n=split($NF,a,"/");print a[n]}'
|
awk
'a !~ $0{print}; {a=$0
}'
)
fi
fi
if
[
"x
$TAG
"
==
"x"
]
;
then
if
[
"x
$TAG
"
==
"x"
]
;
then
echo
"Cannot determine
${
DESIRED_VERSION
}
tag."
echo
"Cannot determine
${
DESIRED_VERSION
}
tag."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment