mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-06 07:50:13 +01:00
Update wgd.sh
This commit is contained in:
parent
d33d886574
commit
ddc3b1f6c2
@ -158,9 +158,9 @@ _checkWireguard(){
|
|||||||
|
|
||||||
_checkPythonVersion(){
|
_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" ]
|
if [ $version_pass == "1" ]
|
||||||
then
|
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
|
elif python3.10 --version > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
printf "[WGDashboard] Found Python 3.10. Will be using python3.10 to install WGDashboard.\n"
|
printf "[WGDashboard] Found Python 3.10. Will be using python3.10 to install WGDashboard.\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user