woocommerce/bin
Rodrigo Primo 9f22f10861 Fix error in the sed commands used to prefix namespaces
This commit fixes a minor error in the sed commands used to prefix
namespaces in the vendor folder. Due to an extra space sed was
considering `.bak` an extra parameter. If we use `-i.bak` instead (without the
space), sed creates a backup file which is the desired behavior.

With this change we won't be getting the errors below when running
`composer install` or `composer update`:

```
Generating autoload files
> sh ./bin/prefix-vendor-namespaces.sh
Prefixing the appropriate vendor namespaces with Automattic\WooCommerce\Vendor
sed: can't read .bak: No such file or directory
sed: can't read .bak: No such file or directory
sed: can't read .bak: No such file or directory
(...)
```

Since sed was working without creating a backup file, I wonder if we
really need to create one. I tested and `sed -i -E -e
"s/\"(League\\\\\\\Container)/\"Automattic\\\\\\\WooCommerce\\\\\\\Vendor\\\\\\\\\1/g"
vendor/league/container/composer.json` works well in Linux. If it also
works on Mac, maybe we can use it and remove the code that deletes the
.bak files?
2020-10-21 09:26:30 -03:00
..
composer Update composer.lock 2020-10-19 23:37:27 -03:00
build-zip.sh Improved bin/build-zip.sh script to move zip file to root 2020-08-12 16:51:56 -03:00
contributors.sh Merge pull request #27944 from woocommerce/update/contributors-sh-list-of-ignored-users 2020-10-14 11:54:21 -03:00
package-update-textdomain.js Included wp_set_script_translations in the list of functions to update domain in. 2020-02-04 15:46:26 +01:00
package-update.sh De-refactor the output function in scripts 2020-10-08 09:28:05 +02:00
post-merge.sh Fix post-merge.sh exit status in some cases 2020-09-18 15:46:58 -03:00
pre-push.sh Fix pre-push hook used by husky 2020-09-23 10:42:23 -03:00
prefix-vendor-namespaces.sh Fix error in the sed commands used to prefix namespaces 2020-10-21 09:26:30 -03:00