From 6dac48edf550d19500c45eec192d444181b3fa76 Mon Sep 17 00:00:00 2001 From: Vague Rabbit Date: Tue, 9 Feb 2021 16:38:39 -0800 Subject: [PATCH] added backticks to git version select statement --- deploy-dashboard.sh | 2 +- deploy.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy-dashboard.sh b/deploy-dashboard.sh index a37c10b..76691c7 100644 --- a/deploy-dashboard.sh +++ b/deploy-dashboard.sh @@ -73,7 +73,7 @@ fi cd saleor-dashboard # Was the -v (version) option used? if [ "vOPT" = "true" || $VERSION = "" ]; then - sudo -u $UN git checkout $VERSION + sudo -u $UN git checkout `$VERSION` fi # Install dependancies sudo -u $UN npm i diff --git a/deploy.sh b/deploy.sh index fa497db..f5c2bcb 100644 --- a/deploy.sh +++ b/deploy.sh @@ -604,7 +604,7 @@ cd $HD/saleor # Was the -v (version) option used? if [ "vOPT" = "true" || $VERSION != "" ]; then # Checkout the specified version - git checkout $VERSION + sudo -u $UN git checkout `$VERSION` wait fi # Install the project requirements