Fixed insecure test import of psutil

pull/171/head
aristocratos 2020-07-10 17:09:26 +02:00
parent b71ae67eab
commit d89735c7a4
1 changed files with 1 additions and 1 deletions

View File

@ -4760,7 +4760,7 @@ if [[ $use_psutil == true ]]; then
else
exit 1
fi
elif [[ $use_psutil == true ]] && ! python3 -c "import psutil" >/dev/null 2>&1; then
elif [[ $use_psutil == true ]] && ! (cd / && python3 -c "import psutil") >/dev/null 2>&1; then
echo "Error: Missing python3 psutil module!"
if [[ $system == "Linux" ]]; then
use_psutil="false"