Output checksums if ynh_setup_source fails

during their verification.
This commit is contained in:
tituspijean 2023-01-31 17:56:32 +01:00 committed by GitHub
parent 0eef27c86f
commit 90aa55599d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,7 +167,7 @@ ynh_setup_source() {
|| ynh_die --message="$out"
# Check the control sum
echo "${src_sum} ${src_filename}" | ${src_sumprg} --check --status \
|| ynh_die --message="Corrupt source"
|| ynh_die --message="Corrupt source for ${src_filename}: Expected ${src_sum} but got $(${src_sumprg} ${src_filename} | cut --delimiter=' ' --fields=1)."
fi
# Keep files to be backup/restored at the end of the helper