diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-12-26 12:52:17 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-12-26 12:52:17 -0200 |
commit | f27e7847590f1754a950f7ae8e60529505dcabb6 (patch) | |
tree | 764ee62db0138678787bdb0140b76fc8b83f16a2 /roundcube-dl | |
parent | 28d0cacf27bfcd83594a67007206618ce9bd7f15 (diff) | |
download | downloaders-f27e7847590f1754a950f7ae8e60529505dcabb6.tar.gz downloaders-f27e7847590f1754a950f7ae8e60529505dcabb6.tar.bz2 |
Roundcube: switch to sha256sum
Diffstat (limited to 'roundcube-dl')
-rwxr-xr-x | roundcube-dl | 8 |
1 files 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 <old-version> <new-version> <md5>" + echo "usage: $BASENAME <old-version> <new-version> <sha256>" 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 |