Force phpcbf to exit with 0

这个提交包含在:
alistair3149 2019-12-30 19:04:02 -05:00
父节点 4eaf207f4c
当前提交 b0da156290
找不到此签名对应的密钥
GPG 密钥 ID: 94D081060FD3DD9C
共有 1 个文件被更改,包括 3 次插入12 次删除

查看文件

@ -1,17 +1,8 @@
#!/bin/bash
# Wrap phpcbf to turn 1 success exit code into 0 code.
# Force phpcbf to exit with zero
# See https://github.com/squizlabs/PHP_CodeSniffer/issues/1818#issuecomment-354420927
root=$( dirname $0 )/..
$root/vendor/bin/phpcbf $@
exit=$?
$root/vendor/bin/phpcbf
echo $?
# Exit code 1 is used to indicate that all fixable errors were fixed correctly.
if [[ $exit == 1 ]]; then
exit=0
fi
exit $exit
exit 0