mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-27 15:50:34 +00:00
Force phpcbf to exit with 0
This commit is contained in:
parent
4eaf207f4c
commit
b0da156290
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue