Fix installers and tests

This commit is contained in:
thePR0M3TH3AN
2025-06-19 19:22:27 -04:00
parent 572f078445
commit 0cbd5ef607
5 changed files with 119 additions and 42 deletions

View File

@@ -41,11 +41,11 @@ done
# ensure Python packages used by the CLI are available
for py in InquirerPy rich; do
python3 - <<EOF >/dev/null 2>&1
if ! python3 - <<EOF >/dev/null 2>&1
import importlib.util, sys
sys.exit(0 if importlib.util.find_spec('$py') else 1)
EOF
if [ $? -ne 0 ]; then
then
pip install --user "$py"
fi
done