From 1b9c4d1986c7596fa1d6e4767ef0326b67b02c8b Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 14 May 2022 15:19:02 +0100 Subject: added backwards compat for md5sum --- src/validate.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/validate.sh b/src/validate.sh index b87e7ca..7087fba 100644 --- a/src/validate.sh +++ b/src/validate.sh @@ -4,7 +4,10 @@ validate_checksum () { local file=$1 local checksum=$2 [ ! -f $file ] && return 1 - [ "$(sha512sum $file | awk '{ print $1; }')" = "$checksum" ] + [ "$(sha512sum $file | awk '{ print $1; }')" = "$checksum" ] || + [ "$(md5sum $file | awk '{ print $1; }')" = "$checksum" ] + # allow md5sum for backwards compatibility + # TODO remove once all repos have sha512 sums } validate_sig () { -- cgit v1.2.1