summaryrefslogtreecommitdiffstatshomepage
path: root/core/scripts/dev/commit-code-check.sh
diff options
context:
space:
mode:
Diffstat (limited to 'core/scripts/dev/commit-code-check.sh')
-rwxr-xr-xcore/scripts/dev/commit-code-check.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/scripts/dev/commit-code-check.sh b/core/scripts/dev/commit-code-check.sh
index 9660d8084b2b..869172b919fd 100755
--- a/core/scripts/dev/commit-code-check.sh
+++ b/core/scripts/dev/commit-code-check.sh
@@ -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;