From 5e190aad3c2a20c76571db8efbe18e894b31e012 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Sat, 5 Dec 2020 00:56:33 +0530 Subject: [PATCH] fix: Check if the argument is an empty string (#1474) --- deployment/setup_18.04.sh | 2 +- deployment/setup_20.04.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/setup_18.04.sh b/deployment/setup_18.04.sh index 152b1feb4..25af78256 100644 --- a/deployment/setup_18.04.sh +++ b/deployment/setup_18.04.sh @@ -48,7 +48,7 @@ rvm use 2.7.2 --default git clone https://github.com/chatwoot/chatwoot.git cd chatwoot -if [[ -z $1 ]]; then +if [[ -z "$1" ]]; then git checkout master; else git checkout $1; diff --git a/deployment/setup_20.04.sh b/deployment/setup_20.04.sh index effad6402..19f32fe12 100644 --- a/deployment/setup_20.04.sh +++ b/deployment/setup_20.04.sh @@ -48,7 +48,7 @@ rvm use 2.7.2 --default git clone https://github.com/chatwoot/chatwoot.git cd chatwoot -if [[ -z $1 ]]; then +if [[ -z "$1" ]]; then git checkout master; else git checkout $1;