fix bash script
This commit is contained in:
parent
31865ae3ea
commit
a0613d83e5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue