From 708236729bab70041ed9ac431ad0f32b1e8da1aa Mon Sep 17 00:00:00 2001 From: Vague Rabbit Date: Tue, 9 Feb 2021 19:16:17 -0800 Subject: [PATCH] ^ --- deploy.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/deploy.sh b/deploy.sh index 5fdb612..2997171 100644 --- a/deploy.sh +++ b/deploy.sh @@ -439,6 +439,12 @@ else fi fi wait +# Was the -v (version) option used? +if [ "vOPT" = "true" ] || [ "$VERSION" != "" ]; then + # Checkout the specified version + sudo -u $UN git checkout $VERSION + wait +fi #sudo -u $UN cp $HD/django/saleor/asgi.py $HD/saleor/saleor/ #sudo -u $UN cp $HD/django/saleor/wsgi.py $HD/saleor/saleor/ #sudo -u $UN cp $HD/saleor/saleor/wsgi/__init__.py $HD/saleor/saleor/wsgi.py @@ -601,13 +607,6 @@ wait # Make sure we're in the project root directory for Saleor cd $HD/saleor wait -set -x -# Was the -v (version) option used? -if [ "vOPT" = "true" ] || [ "$VERSION" != "" ]; then - # Checkout the specified version - sudo -u $UN git checkout $VERSION - wait -fi source $HD/env/saleor/bin/activate # Install the project requirements pip3 install -r requirements.txt