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
08a92b23
Commit
08a92b23
authored
Mar 15, 2018
by
Michal Zerola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed referencing the wrong env variable if SHA sum doesn't match.
parent
b335bfda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
get
scripts/get
+3
-3
No files found.
scripts/get
View file @
08a92b23
...
...
@@ -49,11 +49,11 @@ initOS() {
# runs the given command as root (detects if we are root already)
runAsRoot
()
{
local
CMD
=
"
$*
"
if
[
$EUID
-ne
0
]
;
then
CMD
=
"sudo
$CMD
"
fi
$CMD
}
...
...
@@ -134,7 +134,7 @@ installFile() {
local sum
=
$(
openssl sha1
-sha256
${
HELM_TMP_FILE
}
|
awk
'{print $2}'
)
local
expected_sum
=
$(
cat
${
HELM_SUM_FILE
})
if
[
"
$sum
"
!=
"
$expected_sum
"
]
;
then
echo
"SHA sum of
$
HELM_TMP
does not match. Aborting."
echo
"SHA sum of
$
{
HELM_TMP_FILE
}
does not match. Aborting."
exit
1
fi
...
...
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