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
895e8d08
Commit
895e8d08
authored
Sep 06, 2017
by
Hui Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix unbound variable issue when get version
parent
5ed2d6bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
get
scripts/get
+7
-2
No files found.
scripts/get
View file @
895e8d08
...
@@ -191,9 +191,14 @@ export INPUT_ARGUMENTS="${@}"
...
@@ -191,9 +191,14 @@ export INPUT_ARGUMENTS="${@}"
set
-u
set
-u
while
[[
$#
-gt
0
]]
;
do
while
[[
$#
-gt
0
]]
;
do
case
$1
in
case
$1
in
'--version'
|
-v
)
'--version'
|
-v
)
export
DESIRED_VERSION
=
"
${
2
}
"
shift
shift
if
[[
$#
-ne
0
]]
;
then
export
DESIRED_VERSION
=
"
${
1
}
"
else
echo
-e
"Please provide the desired version. e.g. --version v2.4.0 or -v latest"
exit
0
fi
;;
;;
'--help'
|
-h
)
'--help'
|
-h
)
help
help
...
...
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