From ddc3b1f6c248849eed11025548fa95568efc2c55 Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Fri, 16 Aug 2024 01:58:40 -0400 Subject: [PATCH] Update wgd.sh --- src/wgd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wgd.sh b/src/wgd.sh index 305e1f5..615f2bd 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -158,9 +158,9 @@ _checkWireguard(){ _checkPythonVersion(){ version_pass=$($pythonExecutable -c 'import sys; print("1") if (sys.version_info.major == 3 and sys.version_info.minor >= 10) else print("0");') - if [ $version_pass == "0" ] + if [ $version_pass == "1" ] then - printf "[WGDashboard] WGDashboard required Python 3.10 or above. Looking for specific Python version.\n" + return; elif python3.10 --version > /dev/null 2>&1 then printf "[WGDashboard] Found Python 3.10. Will be using python3.10 to install WGDashboard.\n"