From a0613d83e55272a9cd63f4e2bd495df603109b42 Mon Sep 17 00:00:00 2001 From: Akolzin Dmitry Date: Mon, 2 Mar 2020 14:13:27 +0300 Subject: [PATCH] fix bash script --- tests/bin/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/bin/install.sh b/tests/bin/install.sh index 2c2152b..3c65926 100755 --- a/tests/bin/install.sh +++ b/tests/bin/install.sh @@ -76,7 +76,7 @@ install_woocommerce() { git clone https://github.com/woocommerce/woocommerce.git cd woocommerce - if [[ $WC_VERSION -ne 'latest' ]]; then + if [[ ! $WC_VERSION == 'latest' ]]; then git checkout $WC_VERSION version=($(echo $WC_VERSION | tr "." "\n")) @@ -86,7 +86,7 @@ install_woocommerce() { fi fi - if [[ $WC_VERSION -eq 'latest' ]]; then + if [[ ! $WC_VERSION == 'latest' ]]; then composer install npm install fi