diff options
-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 |