From f27e7847590f1754a950f7ae8e60529505dcabb6 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 26 Dec 2015 12:52:17 -0200 Subject: Roundcube: switch to sha256sum --- roundcube-dl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roundcube-dl b/roundcube-dl index 660006a..516084a 100755 --- a/roundcube-dl +++ b/roundcube-dl @@ -7,11 +7,11 @@ BASENAME="`basename $0`" OLD_VERSION="$1" VERSION="$2" -MD5="$3" +SHA256="$3" # Syntax check if [ -z "$3" ]; then - echo "usage: $BASENAME " + echo "usage: $BASENAME " exit 1 fi @@ -28,9 +28,9 @@ fi wget http://downloads.sourceforge.net/project/roundcubemail/roundcubemail/$VERSION/roundcubemail-$VERSION.tar.gz # Check integrity -echo "$MD5 roundcubemail-$VERSION.tar.gz" | md5sum -c +echo "$SHA256 roundcubemail-$VERSION.tar.gz" | sha256sum -c if [ "$?" != "0" ]; then - echo "error: roundcubemail-$VERSION.tar.gz doesn't match MD5 $MD5, aborting" + echo "error: roundcubemail-$VERSION.tar.gz doesn't match SHA256 $SHA256, aborting" exit fi -- cgit v1.2.3