From feccfeb68511d2632e9b524caaf4f6fe82e92dc6 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Wed, 1 Dec 2021 14:11:32 -0800 Subject: [PATCH] regression_test: improve update line in case virtualenv exists Signed-off-by: Matthew Stidham --- py-scripts/regression_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-scripts/regression_test.sh b/py-scripts/regression_test.sh index ce13a66b..38dd1d50 100755 --- a/py-scripts/regression_test.sh +++ b/py-scripts/regression_test.sh @@ -20,7 +20,7 @@ Help() echo "If using the help flag, put the H flag at the end of the command after other flags." } -pip3 install --user -r ../requirements.txt --upgrade +if [ -d "/home/lanforge/lanforge_env"] && pip3 install --upgrade lanforge-scripts || pip3 install --user -r ../requirements.txt --upgrade while getopts ":h:s:S:p:w:m:A:r:F:B:U:D:H:" option; do case "${option}" in