mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
parent
fd0b8fcfb3
commit
09bc868ea8
1 changed files with 2 additions and 2 deletions
|
@ -248,7 +248,7 @@ compute_sha2() {
|
||||||
echo "${output##* }"
|
echo "${output##* }"
|
||||||
elif type sha256sum &>/dev/null; then
|
elif type sha256sum &>/dev/null; then
|
||||||
output="$(sha256sum -b)" || return 1
|
output="$(sha256sum -b)" || return 1
|
||||||
echo "${output% *}"
|
echo "${output%% *}"
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
@ -263,7 +263,7 @@ compute_md5() {
|
||||||
echo "${output##* }"
|
echo "${output##* }"
|
||||||
elif type md5sum &>/dev/null; then
|
elif type md5sum &>/dev/null; then
|
||||||
output="$(md5sum -b)" || return 1
|
output="$(md5sum -b)" || return 1
|
||||||
echo "${output% *}"
|
echo "${output%% *}"
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue