From 88f5f825b753db1e01d4b87ea3e01cffbd1b3f5c Mon Sep 17 00:00:00 2001 From: Tristan Roscoe Date: Fri, 27 Nov 2020 03:07:57 -0500 Subject: [PATCH] fix: Add branch variable to Linux VM setup script (#1462) --- deployment/setup_18.04.sh | 6 +++++- deployment/setup_20.04.sh | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/deployment/setup_18.04.sh b/deployment/setup_18.04.sh index 8067b6372..152b1feb4 100644 --- a/deployment/setup_18.04.sh +++ b/deployment/setup_18.04.sh @@ -48,7 +48,11 @@ rvm use 2.7.2 --default git clone https://github.com/chatwoot/chatwoot.git cd chatwoot -git checkout master +if [[ -z $1 ]]; then + git checkout master; +else + git checkout $1; +fi bundle yarn diff --git a/deployment/setup_20.04.sh b/deployment/setup_20.04.sh index cc30161c3..effad6402 100644 --- a/deployment/setup_20.04.sh +++ b/deployment/setup_20.04.sh @@ -48,7 +48,11 @@ rvm use 2.7.2 --default git clone https://github.com/chatwoot/chatwoot.git cd chatwoot -git checkout master +if [[ -z $1 ]]; then + git checkout master; +else + git checkout $1; +fi bundle yarn