File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ Due to security, when installed this way the Magento standard for phpcs cannot b
11
11
You can achieve this by adding the following to your project's ` composer.json ` :
12
12
````
13
13
"scripts": {
14
- "post-install-cmd": [
15
- "([ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/)"
14
+ "post-install-cmd": [
15
+ "( [ -f vendor/bin/phpcs ] && [ -L vendor/bin/phpcs ] && vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/) || true "
16
16
],
17
17
"post-update-cmd": [
18
- "([ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/)"
18
+ "( [ -f vendor/bin/phpcs ] && [ -L vendor/bin/phpcs ] && vendor/bin/phpcs --config-set installed_paths ../../magento/magento-coding-standard/) || true "
19
19
]
20
20
}
21
21
````
You can’t perform that action at this time.
0 commit comments