mirror of https://github.com/aristocratos/bashtop
Fixed insecure test import of psutil
parent
b71ae67eab
commit
d89735c7a4
2
bashtop
2
bashtop
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue