diff options
author | llmII <dev@amlegion.org> | 2023-01-03 18:44:55 -0600 |
---|---|---|
committer | llmII <dev@amlegion.org> | 2023-01-03 18:44:55 -0600 |
commit | 4e2eb9922e9e7c43ed2345afa9728f7d216a847f (patch) | |
tree | 46add0ea560ad8dddd20cb9ffdc58e109c2a2609 /utils | |
parent | 647a0aa98bd1d2000eb1ca5270e017d85d5c3463 (diff) | |
download | searxng-4e2eb9922e9e7c43ed2345afa9728f7d216a847f.tar.gz searxng-4e2eb9922e9e7c43ed2345afa9728f7d216a847f.zip |
Fix checksum virtualenv checks.
There's already precedence for not using GNUism sha256sum longopts as
seen in searxng/utils/lib_go.sh so update lib.sh to not use them either.
A nice side effect is now the sha256sum usage doesn't care if you're
using BSD sha256sum or GNU sha256sum which makes this work under FreeBSD.
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/lib.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/lib.sh b/utils/lib.sh index a4e9e8528..afc6ef19b 100755 --- a/utils/lib.sh +++ b/utils/lib.sh @@ -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 |