fix: Check if the argument is an empty string (#1474)

This commit is contained in:
Pranav Raj S 2020-12-05 00:56:33 +05:30 committed by GitHub
parent e1d4584770
commit 5e190aad3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;