Skip to content

Commit 28f6416

Browse files
committed
Update post install and update cmds
1 parent 62ba736 commit 28f6416

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"wp-coding-standards/wpcs": "dev-develop"
2626
},
2727
"scripts": {
28-
"post-install-cmd": "\"vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs",
29-
"post-update-cmd" : "\"vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs"
28+
"post-install-cmd": "if [ -f vendor/bin/phpcs ]; then \"vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs; fi",
29+
"post-update-cmd": "if [ -f vendor/bin/phpcs ]; then \"vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs; fi"
3030
},
3131
"minimum-stability": "dev",
3232
"prefer-stable": true

0 commit comments

Comments
 (0)