Issue #3259142 by longwave, murilohp: PHPStan commit check fails if a file is deleted

merge-requests/1696/head
catch 2022-01-18 19:00:42 +00:00
parent 45d838fcb7
commit 3a2115b6c3
1 changed files with 3 additions and 1 deletions

View File

@ -125,7 +125,9 @@ ESLINT_CONFIG_PASSING_FILE_CHANGED=0
# Build up a list of absolute file names.
ABS_FILES=
for FILE in $FILES; do
ABS_FILES="$ABS_FILES $TOP_LEVEL/$FILE"
if [ -f "$TOP_LEVEL/$FILE" ]; then
ABS_FILES="$ABS_FILES $TOP_LEVEL/$FILE"
fi
if [[ $FILE == "core/phpcs.xml.dist" ]]; then
PHPCS_XML_DIST_FILE_CHANGED=1;