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
5e0dc6c0
Commit
5e0dc6c0
authored
Jun 21, 2013
by
Erik Michaels-Ober
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #374 from katiepru/fix_md5_case
making checksum comparison case insensitive
parents
c30c3356
edf38465
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 @
5e0dc6c0
...
@@ -172,11 +172,11 @@ verify_checksum() {
...
@@ -172,11 +172,11 @@ verify_checksum() {
[
-e
"
$filename
"
]
||
return
0
[
-e
"
$filename
"
]
||
return
0
# If there's no expected checksum, return success
# 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
[
-n
"
$expected_checksum
"
]
||
return
0
# If the computed checksum is empty, return failure
# 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
[
-n
"
$computed_checksum
"
]
||
return
1
if
[
"
$expected_checksum
"
!=
"
$computed_checksum
"
]
;
then
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