From d89735c7a4960048f30ddbb69f3890526695165b Mon Sep 17 00:00:00 2001 From: aristocratos Date: Fri, 10 Jul 2020 17:09:26 +0200 Subject: [PATCH] Fixed insecure test import of psutil --- bashtop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashtop b/bashtop index 7186963..044a303 100755 --- a/bashtop +++ b/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"