Stop looking for commas and start looking for double quotes.
This commit is contained in:
parent
c5479af526
commit
674dbbacac
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue