summaryrefslogtreecommitdiffhomepage
path: root/subr/ex_rtl_fetch.subr
diff options
context:
space:
mode:
Diffstat (limited to 'subr/ex_rtl_fetch.subr')
-rw-r--r--subr/ex_rtl_fetch.subr2
1 files changed, 1 insertions, 1 deletions
diff --git a/subr/ex_rtl_fetch.subr b/subr/ex_rtl_fetch.subr
index 19c0d0d3..8aaebf66 100644
--- a/subr/ex_rtl_fetch.subr
+++ b/subr/ex_rtl_fetch.subr
@@ -80,7 +80,7 @@ ex_rtl_fetch_url_wget() {
if [ ! -e "${_url_dst}.fetched" ]; then
wget ${DEFAULT_WGET_ARGS} -O "${_url_dst}" "${_url}";
if [ -n "${_sha256sum_src}" ]; then
- set -- $(openssl dgst -sha256 "${_url_dst}"); shift $((${#}-1));
+ set -- $(sha256sum "${_url_dst}");
if [ "${_sha256sum_dst:=${1}}" != "${_sha256sum_src}" ]; then
ex_rtl_log_msg failexit "Error: hash mismatch for URL \`${_url}' (downloaded file: ${_sha256sum_dst}, from build variables: ${_sha256sum_src}.)";
fi;