diff --git a/src/wgd.sh b/src/wgd.sh index f6b93cd..a0ba35d 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -180,16 +180,19 @@ install_wgd(){ else printf "[WGDashboard] \xE2\x9C\x94 Python is installed\n" fi + + version_pass=$(python3 -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\n" + exit 1 + fi + _installPythonVenv _installPythonPip - version_pass=$(python3 -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\n" - exit 1 - fi + if [ ! -d "db" ] then