1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-09 12:03:49 -05:00

Remove extra spaces in checksum (#976)

Fixes #902.
This commit is contained in:
Nikita Grishko
2017-09-05 20:08:48 +03:00
committed by Daniel Hahler
parent fd0b8fcfb3
commit 09bc868ea8

View File

@@ -248,7 +248,7 @@ compute_sha2() {
echo "${output##* }"
elif type sha256sum &>/dev/null; then
output="$(sha256sum -b)" || return 1
echo "${output% *}"
echo "${output%% *}"
else
return 1
fi
@@ -263,7 +263,7 @@ compute_md5() {
echo "${output##* }"
elif type md5sum &>/dev/null; then
output="$(md5sum -b)" || return 1
echo "${output% *}"
echo "${output%% *}"
else
return 1
fi