From b9370955d69157ff1968ca35f65145bb1d161862 Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Fri, 16 Aug 2024 02:53:45 -0400 Subject: [PATCH] Update wgd.sh --- src/wgd.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wgd.sh b/src/wgd.sh index db9fd6d..0575bcc 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -47,7 +47,7 @@ _check_and_set_venv(){ { $pythonExecutable -m venv $VIRTUAL_ENV; } >> ./log/install.txt fi - if ! "$venv_python" --version > /dev/null 2>&1 + if ! $venv_python --version > /dev/null 2>&1 then printf "[WGDashboard] %s Python Virtual Environment under ./venv failed to create. Halting now.\n" "$heavy_crossmark" exit 1 @@ -233,9 +233,9 @@ install_wgd(){ fi _check_and_set_venv printf "[WGDashboard] Upgrading Python Package Manage (PIP)\n" - { date; venv_python -m pip install pip; printf "\n\n"; } >> ./log/install.txt + { date; $venv_python -m pip install pip; printf "\n\n"; } >> ./log/install.txt printf "[WGDashboard] Installing latest Python dependencies\n" - { date; venv_python -m pip install -r requirements.txt ; printf "\n\n"; } >> ./log/install.txt + { date; $venv_python -m pip install -r requirements.txt ; printf "\n\n"; } >> ./log/install.txt printf "[WGDashboard] WGDashboard installed successfully!\n" printf "[WGDashboard] Enter ./wgd.sh start to start the dashboard\n" }