Navigation Menu

Skip to content

Commit

Permalink
Use SHA256 instead of MD5
Browse files Browse the repository at this point in the history
Because MD5 support is deprecated:

  Warning: MD5 support is deprecated and will be removed in a future version.
  Please switch this formula to SHA1 or SHA256.
  • Loading branch information
kou committed Feb 13, 2013
1 parent df4c8de commit aeec611
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update.sh
Expand Up @@ -19,13 +19,13 @@ mkdir -p $tmp_dir
chmod og-rwx $tmp_dir
cd $tmp_dir
curl -LO $mroonga_url
md5=$(openssl dgst -md5 $base_name | cut -f 2 -d ' ')
sha256=$(openssl dgst -sha256 $base_name | cut -f 2 -d ' ')
cd -
rm -rf $tmp_dir

sed -i'' \
-e "s,'http://packages.*','$mroonga_url'," \
mroonga.rb
sed -i'' \
-e "s,md5 '.*',md5 '$md5'," \
-e "s,sha256 '.*',sha256 '$sha256'," \
mroonga.rb

0 comments on commit aeec611

Please sign in to comment.