1
0
mirror of synced 2025-02-21 01:13:13 +03:00

fix bash script

This commit is contained in:
Akolzin Dmitry 2020-03-02 14:13:27 +03:00
parent 31865ae3ea
commit a0613d83e5

View File

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