1
0
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:
Donald Zou 2024-08-16 17:34:54 -04:00
parent f35dee8643
commit 348e574154

View File

@ -207,15 +207,15 @@ _checkPythonVersion(){
return; return;
elif python3.10 --version > /dev/null 2>&1 elif python3.10 --version > /dev/null 2>&1
then then
printf "[WGDashboard] %s Found Python 3.10. Will be using python3.10 to install WGDashboard.\n" "$heavy_checkmark" printf "[WGDashboard] %s Found Python 3.10. Will be using [python3.10] to install WGDashboard.\n" "$heavy_checkmark"
pythonExecutable="python3.10" pythonExecutable="python3.10"
elif python3.11 --version > /dev/null 2>&1 elif python3.11 --version > /dev/null 2>&1
then then
printf "[WGDashboard] %s Found Python 3.11. Will be using python3.10 to install WGDashboard.\n" "$heavy_checkmark" printf "[WGDashboard] %s Found Python 3.11. Will be using [python3.11] to install WGDashboard.\n" "$heavy_checkmark"
pythonExecutable="python3.11" pythonExecutable="python3.11"
elif python3.12 --version > /dev/null 2>&1 elif python3.12 --version > /dev/null 2>&1
then then
printf "[WGDashboard] %s Found Python 3.12. Will be using python3.10 to install WGDashboard.\n" "$heavy_checkmark" printf "[WGDashboard] %s Found Python 3.12. Will be using [python3.12] to install WGDashboard.\n" "$heavy_checkmark"
pythonExecutable="python3.12" pythonExecutable="python3.12"
else else
printf "[WGDashboard] %s Could not find a compatible version of Python. Current Python is %s.\n" "$heavy_crossmark" "$version" printf "[WGDashboard] %s Could not find a compatible version of Python. Current Python is %s.\n" "$heavy_crossmark" "$version"