From 3a76674095c5c5f3793020ac9f5f9d949c4b3f6b Mon Sep 17 00:00:00 2001 From: Vague Rabbit Date: Thu, 4 Feb 2021 22:29:08 -0800 Subject: [PATCH] ^ --- deploy-dashboard.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deploy-dashboard.sh b/deploy-dashboard.sh index 3c1830a..ead58bc 100644 --- a/deploy-dashboard.sh +++ b/deploy-dashboard.sh @@ -46,7 +46,7 @@ cd $HD if [ -f "$HD/saleor-dashboard" ]; then sudo rm -R $HD/saleor-dashboard fi -git clone https://github.com/mirumee/saleor-dashboard.git +sudo -u $UN git clone https://github.com/mirumee/saleor-dashboard.git wait # Build the API URL API_URL="http://$API_HOST:$API_PORT/$APIURI/" @@ -72,13 +72,13 @@ fi # Make sure we're in the project root directory cd saleor-dashboard # Was the -v (version) option used? -if [ "vOPT" = "true" ]; then - git checkout $VERSION +if [ "vOPT" = "true" || $VERSION = "" ]; then + sudo -u $UN git checkout $VERSION fi # Install dependancies -npm i +sudo -u $UN npm i wait -npm run build +sudo -u $UN npm run build wait #########################################################################################