diff --git a/deploy-production.sh b/deploy-production.sh index b7fc712..61ac7a3 100755 --- a/deploy-production.sh +++ b/deploy-production.sh @@ -5,7 +5,7 @@ # This if statement will only deploy on Jenkins when its testing the master branch. echo "-->$GIT_BRANCH<--" -if [[ $GIT_BRANCH == *"master"* ]] +if [[ $GIT_BRANCH =~ "master" ]] then echo "Deploying to production...."