Stop looking for commas and start looking for double quotes.

This commit is contained in:
Jeff Stieler 2020-04-29 15:58:59 -06:00
parent c5479af526
commit 674dbbacac
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ output 2 "Done!"
output 3 "Updating package JS textdomains..." output 3 "Updating package JS textdomains..."
find ./packages/woocommerce-blocks -iname '*.js' -exec sed -i.bak -e "s/'woo-gutenberg-products-block'/'woocommerce'/g" -e "s/\"woo-gutenberg-products-block\"/'woocommerce'/g" {} \; find ./packages/woocommerce-blocks -iname '*.js' -exec sed -i.bak -e "s/'woo-gutenberg-products-block'/'woocommerce'/g" -e "s/\"woo-gutenberg-products-block\"/'woocommerce'/g" {} \;
find ./packages/woocommerce-admin -iname '*.js' -exec sed -i.bak -e "s/, 'woocommerce-admin'/, 'woocommerce'/g" {} \; find ./packages/woocommerce-admin -iname '*.js' -exec sed -i.bak -e "s/'woocommerce-admin'/'woocommerce'/g" -e "s/\"woocommerce-admin\"/'woocommerce'/g" {} \;
# Cleanup backup files # Cleanup backup files
find ./packages -name "*.bak" -type f -delete find ./packages -name "*.bak" -type f -delete