diff --git a/.gitignore b/.gitignore index 91f1ebe..fbc41eb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ dist +venv **/__pycache__ diff --git a/check_updates.sh b/check_updates.sh index 20ed985..5487139 100755 --- a/check_updates.sh +++ b/check_updates.sh @@ -11,7 +11,18 @@ if [[ ${retval} -ne 0 ]]; then # for the sake of consistency, let's make the check_updates.sh script # executable chmod +x check_updates.sh - # Updating the environment is left to hatch itself. + + # Updating runtime + if [[ -d venv ]]; then + source venv/bin/activate + fi + pip3 uninstall -y loaih + # build the actual toolkit + python3 -m build --sdist + pip3 install dist/*.tar.gz; rv=$? + if [[ -d venv ]]; then + deactivate + fi if [[ ${rv} -eq 0 ]]; then # cleanup