From edf384653f2120b47b3e3cb2acddfcf83b0b51ea Mon Sep 17 00:00:00 2001 From: katiepru Date: Wed, 19 Jun 2013 17:55:37 -0400 Subject: [PATCH] making checksum comparison case insensitive --- bin/ruby-build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ruby-build b/bin/ruby-build index 7a6d2c63..3c45f6eb 100755 --- a/bin/ruby-build +++ b/bin/ruby-build @@ -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