Skip to content

Commit

Permalink
Merge branch 'master' into feature/document-version
Browse files Browse the repository at this point in the history
  • Loading branch information
limakzi authored Jan 30, 2021
2 parents 4c3b5ce + dd074e4 commit c829e52
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions libexec/tfenv-install
Original file line number Diff line number Diff line change
Expand Up @@ -227,16 +227,14 @@ if [[ -n "${shasum_bin}" && -x "${shasum_bin}" ]]; then
"${shasum_bin}" \
-a 256 \
-s \
-c <(grep -F "${tarball_name}" "${shasums_name}") \
|| log 'error' 'SHA256 hash does not match!';
);
-c <(grep -F "${tarball_name}" "${shasums_name}")
) || log 'error' 'SHA256 hash does not match!';
elif [[ -n "${sha256sum_bin}" && -x "${sha256sum_bin}" ]]; then
(
cd "${download_tmp}";
"${sha256sum_bin}" \
-c <(grep -F "${tarball_name}" "${shasums_name}") \
|| log 'error' 'SHA256 hash does not match!';
);
-c <(grep -F "${tarball_name}" "${shasums_name}")
) || log 'error' 'SHA256 hash does not match!';
else
# Lack of shasum deserves a proper warning
log 'warn' 'No shasum tool available. Skipping SHA256 hash validation';
Expand Down

0 comments on commit c829e52

Please sign in to comment.