From 0215324bba9cb93fbb5971ba27a449130a50b07f Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Mon, 3 Jul 2023 00:00:49 +0200 Subject: [PATCH] Aggiunta attivazione/disattivazione venv. --- check_updates.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/check_updates.sh b/check_updates.sh index fd557b5..6e43913 100755 --- a/check_updates.sh +++ b/check_updates.sh @@ -11,10 +11,16 @@ if [[ ${retval} -ne 0 ]]; then # for the sake of consistency, let's make the check_updates.sh script # executable chmod +x check_updates.sh + if [[ -d venv ]]; then + source venv/bin/activate + fi pip3 uninstall -y loaih # build the actual toolkit python3 setup.py bdist_wheel pip3 install dist/*.whl; rv=$? + if [[ -d venv ]]; then + deactivate + fi if [[ ${rv} -eq 0 ]]; then # cleanup