Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ruby-build
Overview
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ruby-build
Commits
edf38465
Commit
edf38465
authored
Jun 19, 2013
by
katiepru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
making checksum comparison case insensitive
parent
c30c3356
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bin/ruby-build
+2
-2
No files found.
bin/ruby-build
View file @
edf38465
...
...
@@ -172,11 +172,11 @@ verify_checksum() {
[
-e
"
$filename
"
]
||
return
0
# If there's no expected checksum, return success
local
expected_checksum
=
"
$2
"
local
expected_checksum
=
`
echo
"
$2
"
| tr
[
A-Z]
[
a-z]
`
[
-n
"
$expected_checksum
"
]
||
return
0
# If the computed checksum is empty, return failure
local
computed_checksum
=
"
$(
compute_md5 <
"
$filename
"
)
"
local
computed_checksum
=
`
echo
"
$(
compute_md5 <
"
$filename
"
)
"
| tr
[
A-Z]
[
a-z]
`
[
-n
"
$computed_checksum
"
]
||
return
1
if
[
"
$expected_checksum
"
!=
"
$computed_checksum
"
]
;
then
...
...
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