fix: correct a mistake done when fixing shellcheck lints

- we must not exit right away if sourcing fails
- recreate the venv only if the source fails
This commit is contained in:
Arthur Meyre
2021-09-22 09:37:50 +02:00
parent d6986a0d93
commit 468f8aba62

View File

@@ -3,10 +3,10 @@
# Run benchmarks while logging the intermediate results
# Publish findings in the progress tracker
set -e
set +e
# shellcheck disable=SC1091
if source /src/.docker_venv/bin/activate; then
if ! source /src/.docker_venv/bin/activate; then
python3 -m venv /src/.docker_venv
# shellcheck disable=SC1091
source /src/.docker_venv/bin/activate