Merge pull request #2072 from llmII/fix-checksum

Fix checksum virtualenv checks.
This commit is contained in:
Markus Heiser 2023-01-07 13:52:17 +01:00 committed by GitHub
commit cb7b091666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -600,7 +600,7 @@ pyenv.OK() {
fi
if [ ! -f "${PY_ENV}/requirements.sha256" ] \
|| ! sha256sum --check --status <"${PY_ENV}/requirements.sha256" 2>/dev/null; then
|| ! sha256sum -c "${PY_ENV}/requirements.sha256" > /dev/null 2>&1; then
build_msg PYENV "[virtualenv] requirements.sha256 failed"
sed 's/^/ [virtualenv] - /' <"${PY_ENV}/requirements.sha256"
return 1