From d33d88657477384e985819345443c569d08de61d Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Fri, 16 Aug 2024 01:55:53 -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 cb73285..305e1f5 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -98,7 +98,7 @@ _installPythonVenv(){ if [ "$pythonExecutable" = "python" ]; then { sudo apt update ; sudo apt-get install -y python3-venv; printf "\n\n"; } &>> ./log/install.txt else - { sudo add-apt-repository ppa:deadsnakes/ppa -y; sudo apt-get update; sudo apt-get install $pythonExecutable-venv; printf "\n\n"; } &>> ./log/install.txt + { sudo apt-get update; sudo apt-get install $pythonExecutable-venv; printf "\n\n"; } &>> ./log/install.txt fi ;; centos|fedora|redhat) @@ -157,7 +157,7 @@ _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");') + 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" ] then printf "[WGDashboard] WGDashboard required Python 3.10 or above. Looking for specific Python version.\n"