diff --git a/core/scripts/dev/commit-code-check.sh b/core/scripts/dev/commit-code-check.sh index 9660d8084b2bf8488b433c5512aed96a456fa0b1..869172b919fddd77b7c23992288810e46cd55d09 100755 --- a/core/scripts/dev/commit-code-check.sh +++ b/core/scripts/dev/commit-code-check.sh @@ -125,7 +125,9 @@ # 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;